From: <sy...@us...> - 2011-07-11 18:34:52
|
Revision: 35301 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=35301&view=rev Author: sylvieg Date: 2011-07-11 18:34:46 +0000 (Mon, 11 Jul 2011) Log Message: ----------- [FIX]tracker: better test to avoid sql error when the value of a category filter has been forgotten Modified Paths: -------------- branches/7.x/lib/trackers/trackerlib.php Modified: branches/7.x/lib/trackers/trackerlib.php =================================================================== --- branches/7.x/lib/trackers/trackerlib.php 2011-07-10 20:33:25 UTC (rev 35300) +++ branches/7.x/lib/trackers/trackerlib.php 2011-07-11 18:34:46 UTC (rev 35301) @@ -1081,7 +1081,7 @@ $bindvars[] = $ff; } - if ( $filter['type'] == 'e' && $prefs['feature_categories'] == 'y' ) { //category + if ( $filter['type'] == 'e' && $prefs['feature_categories'] == 'y' && (!empty($ev) || !empty($fv)) ) { //category $value = empty($fv) ? $ev : $fv; if ( ! is_array($value) && $value != '' ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |