Author: leithoff
New Revision: 35764
URL: http://svn.stylite.de/viewvc/egroupware?rev=35764&view=rev
Log:
fix broken category search, selected cat=1 always, when only one category wasselected, as (int) of an array does not give the required/expected result
Modified:
trunk/calendar/inc/class.calendar_so.inc.php
Modified: trunk/calendar/inc/class.calendar_so.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/calendar/inc/class.calendar_so.inc.php?rev=35764&r1=35763&r2=35764&view=diff
— trunk/calendar/inc/class.calendar_so.inc.php (original)
+++ trunk/calendar/inc/class.calendar_so.inc.php Tue Jul 19 09:32:28 2011
@@ -344,7 +344,7 @@
{
$cats = $GLOBALS[‘egw’]->categories->return_all_children($cat_id);
array_walk($cats,create_function(’&$val,$key’,’$val = (int) $val;’));
-
if (is_array($cat_id) && count($cat_id)==1) $cat_id = $cat_id[0]; $sql = '(cal_category'.(count($cats) > 1 ? " IN ('".implode("','",$cats)."')" : '='.$this->db->quote((int)$cat_id)); foreach($cats as $cat) {
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs