Index: trunk/kernel/parser.php =================================================================== diff -u -r526 -r534 --- trunk/kernel/parser.php (.../parser.php) (revision 526) +++ trunk/kernel/parser.php (.../parser.php) (revision 534) @@ -2436,7 +2436,7 @@ $perm = strtoupper($_GET["error"]); if(strlen($perm)) { - $ado = GetADODBConnection(); + $ado = &GetADODBConnection(); $sql = "SELECT * FROM ".GetTablePrefix()."PermissionConfig WHERE PermissionName ='$perm'"; $rs = $ado->Execute($sql); if($rs && !$rs->EOF) @@ -2562,7 +2562,7 @@ { global $objConfig, $objCatList; - $ado = GetADODBConnection(); + $ado = &GetADODBConnection(); if($attribs["_local"] && $objCatList->CurrentCategoryID() != 0) { @@ -3047,7 +3047,7 @@ global $online_friends; - $ado = GetADODBConnection(); + $ado = &GetADODBConnection(); $status = strtolower($attribs["_status"]); @@ -3140,7 +3140,7 @@ global $online_friends; - $ado = GetADODBConnection(); + $ado = &GetADODBConnection(); $logedin_user = $objSession->Get("PortalUserId"); $u =& $objUsers->GetUser($logedin_user); @@ -3212,7 +3212,7 @@ $logedin_user = $objSession->Get("PortalUserId"); $ret =0; - $ado = GetADODBConnection(); + $ado = &GetADODBConnection(); $today = mktime(0,0,0,date("m"),date("d"),date("Y")); $sql = "SELECT count(*) as c FROM ".GetTablePrefix()."Favorites WHERE ItemTypeId=6 and PortalUserId=".$objSession->Get("PortalUserId")." AND Modified>$today"; $rs = $ado->Execute($sql); @@ -3360,7 +3360,7 @@ if (!$OwnCount || is_null($OwnCount)) $sql_add.= " AND SessionKey!='".$objSession->GetSessionKey()."'"; - $ado = GetADODBConnection(); + $ado = &GetADODBConnection(); $sql = "SELECT COUNT(*) AS Counter FROM ".GetTablePrefix()."UserSession WHERE Status=1".$sql_add; $rs = $ado->Execute($sql); $ret = ($rs && !$rs->EOF)? $rs->fields["Counter"] : 0;