Open demianturner opened 11 years ago
http://trac.seagullproject.org/browser/trunk/lib/SGL/String.php#L397
it should be
$sliced = (count($words) > $limit) ? array_slice($words, 0, $limit) : $words;
not
$sliced = (count($words > $limit)) ? array_slice($words, 0, $limit) : $words;
notice the the ) moved
[rm] This is already fixed in 0.6-bugfix.
[demian] it's not fixed. pls dont' close tix unless you are certain, i don't need the xtra work
http://trac.seagullproject.org/browser/trunk/lib/SGL/String.php#L397
it should be
$sliced = (count($words) > $limit) ? array_slice($words, 0, $limit) : $words;
not
$sliced = (count($words > $limit)) ? array_slice($words, 0, $limit) : $words;
notice the the ) moved