From: <sy...@us...> - 2011-01-31 20:44:13
|
Revision: 32322 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=32322&view=rev Author: sylvieg Date: 2011-01-31 20:44:06 +0000 (Mon, 31 Jan 2011) Log Message: ----------- [FIX]trackerfilter: php in_array behaves strangely is the types are not the same Modified Paths: -------------- trunk/lib/trackers/trackerlib.php Modified: trunk/lib/trackers/trackerlib.php =================================================================== --- trunk/lib/trackers/trackerlib.php 2011-01-31 20:38:55 UTC (rev 32321) +++ trunk/lib/trackers/trackerlib.php 2011-01-31 20:44:06 UTC (rev 32322) @@ -867,7 +867,7 @@ } elseif ($ev) { if (is_array($ev)) { $keys = array_keys($ev); - if (in_array($keys[0], array('<', '>', '<=', '>='))) { + if (in_array((string)$keys[0], array('<', '>', '<=', '>='))) { $mid .= " AND ttif$i.`value`".$keys[0].'?'; $bindvars[] = $ev[$keys[0]]; } elseif ($keys[0] == 'not') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |