Skip to content

E_NOTICE warning in getList processor #33

Description

@BobRay

Line 153 of core\components\discuss\hooks\board\post\getlist.php

  $threadArray['excerpt'] =  
     substr($threadArray['excerpt'],0,$modx->getOption('discuss.post_excerpt_length', null, 500)).'...';

should be"

 $threadArray['excerpt'] = substr($threadArray['excerpt'],0, (float)
      $modx->getOption('discuss.post_excerpt_length', null, 500)).'...';

Substr() wants argument 3 to be a long (float is necessary for 32-bit platforms).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions