demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

SGL_String::summarise() is not properly using count() #364

Open demianturner opened 11 years ago

demianturner commented 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

demianturner commented 11 years ago

[rm] This is already fixed in 0.6-bugfix.

demianturner commented 11 years ago

[demian] it's not fixed. pls dont' close tix unless you are certain, i don't need the xtra work