Ticket #364 (reopened defect)

Opened 8 years ago

Last modified 8 years ago

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

Reported by: aj Assigned to: somebody
Priority: normal Milestone:
Component: SGL - String Severity: trivial
Keywords: Cc:

Description

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

Change History

03/31/06 09:13:29 changed by rm

  • status changed from new to closed.
  • resolution set to fixed.

This is already fixed in 0.6-bugfix.

03/31/06 09:26:42 changed by demian

  • status changed from closed to reopened.
  • resolution deleted.

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