Author: ralfbecker
New Revision: 34949
URL: http://www.egroupware.org/viewvc/egroupware?rev=34949&view=rev
Log:
fix postgres error reported on devel list: PostgreSQL error with categories attrunk@34914
Modified:
trunk/phpgwapi/inc/class.categories.inc.php
Modified: trunk/phpgwapi/inc/class.categories.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/phpgwapi/inc/class.categories.inc.php?rev=34949&r1=34948&r2=34949&view=diff
— trunk/phpgwapi/inc/class.categories.inc.php (original)
+++ trunk/phpgwapi/inc/class.categories.inc.php Mon May 16 16:25:17 2011
@@ -893,9 +893,9 @@
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()) -
{ -
$GLOBALS['egw']->db->update(self::TABLE,'cat_owner=0',"(cat_owner=-1 OR cat_appname='phpgw')",__LINE__,__FILE__);
-
if (!$GLOBALS['egw']->db->select(self::TABLE,'COUNT(*)',array('cat_owner'=>'0'),__LINE__,__FILE__)->fetchColumn()) -
{ -
$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,
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs