Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E_NOTICE warning in getList processor #33

Open
BobRay opened this issue Oct 8, 2014 · 0 comments
Open

E_NOTICE warning in getList processor #33

BobRay opened this issue Oct 8, 2014 · 0 comments

Comments

@BobRay
Copy link

BobRay commented Oct 8, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant