"added quoting"

This commit is contained in:
Ralf Becker 2008-04-16 11:37:47 +00:00
parent 0a5be8a725
commit f3181308c5

View File

@ -623,7 +623,7 @@ class categories
'cat_name' => $cats, 'cat_name' => $cats,
'cat_appname' => array($this->app_name, 'phpgw'), 'cat_appname' => array($this->app_name, 'phpgw'),
),__LINE__,__FILE__,0, ),__LINE__,__FILE__,0,
"ORDER BY cat_name!='$cat_name',(CASE cat_owner WHEN ".(int)$this->account_id." THEN 1 WHEN -1 THEN 2 ELSE 3 END),cat_appname='phpgw'", 'ORDER BY cat_name<>'.$this->db->quote($cat_name).',(CASE cat_owner WHEN '.(int)$this->account_id." THEN 1 WHEN -1 THEN 2 ELSE 3 END),cat_appname='phpgw'",
false,1)->fetch(); false,1)->fetch();
if (!$cat) return 0; // cat not found, dont cache it, as it might be created in this request if (!$cat) return 0; // cat not found, dont cache it, as it might be created in this request