From a2d19164eeb7f2cfa42f10ffb43cd2d9a6be8380 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 16 May 2011 14:25:17 +0000 Subject: [PATCH] fix postgres error reported on devel list: PostgreSQL error with categories attrunk@34914 --- phpgwapi/inc/class.categories.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 6d875b3929..ec5bcf2c6e 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -893,9 +893,9 @@ class categories return self::$cache =& $cache; } // check if we are already updated to global owner == 0, if not do it now - if (!$GLOBALS['egw']->db->select(self::TABLE,'COUNT(*)','cat_owner=0',__LINE__,__FILE__)->fetchColumn()) + if (!$GLOBALS['egw']->db->select(self::TABLE,'COUNT(*)',array('cat_owner'=>'0'),__LINE__,__FILE__)->fetchColumn()) { - $GLOBALS['egw']->db->update(self::TABLE,'cat_owner=0',"(cat_owner=-1 OR cat_appname='phpgw')",__LINE__,__FILE__); + $GLOBALS['egw']->db->update(self::TABLE,array('cat_owner'=>'0'),"(cat_owner='-1' OR cat_appname='phpgw')",__LINE__,__FILE__); $GLOBALS['egw']->db->insert(self::TABLE,array( 'cat_main' => 0, 'cat_parent' => 0,