Discuss
Discuss copied to clipboard
E_NOTICE warning in getList processor
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).