fixed wrong quoting of cat_id (it's a string in calendar) as reported by the maxdb testers

This commit is contained in:
Ralf Becker 2004-12-05 14:42:17 +00:00
parent e01031de62
commit 3723acdbf2

View File

@ -92,7 +92,7 @@
}
array_walk($cats,create_function('&$val,$key','$val = (int) $val;'));
$extra .= "($this->table.cal_category".(count($cats) > 1 ? ' IN ('.implode(',',$cats).')' : '='.(int)$cat_id);
$extra .= "($this->table.cal_category".(count($cats) > 1 ? ' IN ('.implode(',',$cats).')' : '='.$this->db->quote((int)$cat_id));
foreach($cats as $cat)
{
$extra .= " OR $this->table.cal_category LIKE '$cat,%' OR $this->table.cal_category LIKE '%,$cat,%' OR $this->table.cal_category LIKE '%,$cat'";