mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
"added quoting"
This commit is contained in:
parent
0a5be8a725
commit
f3181308c5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user