Skip to content

E_NOTICE warning in getList processor #33

@BobRay

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions