Index: trunk/kernel/include/category.php =================================================================== diff -u -r525 -r534 --- trunk/kernel/include/category.php (.../category.php) (revision 525) +++ trunk/kernel/include/category.php (.../category.php) (revision 534) @@ -12,7 +12,7 @@ global $objSession; $this->clsItem(TRUE); - //$this->adodbConnection = GetADODBConnection(); + //$this->adodbConnection = &GetADODBConnection(); $this->tablename = GetTablePrefix()."Category"; $this->type=1; $this->BasePermission ="CATEGORY"; @@ -1345,7 +1345,7 @@ $parents = substr($parents, 1, strlen($parents) - 2 ); $parents = explode('|', $parents); - $db =& GetADODBConnection(); + $db =&GetADODBConnection(); $sql = 'UPDATE '.$this->tablename.' SET Modified = '.$date.' WHERE CategoryId IN ('.implode(',', $parents).')'; $db->Execute($sql); } @@ -2145,7 +2145,7 @@ global $$cat_filter; $filter = $$cat_filter; - $adodbConnection = GetADODBConnection(); + $adodbConnection = &GetADODBConnection(); $sql = "SELECT COUNT(Name) as children from ".$this->SourceTable." where ParentId=" . $ParentID . $filter; $result = $adodbConnection->Execute($sql); @@ -2297,7 +2297,7 @@ { global $objCatList; - $adodbConnection = GetADODBConnection(); + $adodbConnection = &GetADODBConnection(); $sql = "select CategoryId from ".GetTablePrefix()."Category where ParentId='$Id'"; $rs = $adodbConnection->Execute($sql);