From 8f0c5ddedbd696c658c94c8d210cdf7e5d296e03 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 2 Sep 2001 07:13:23 +0000 Subject: [PATCH] A few missed GLOBALS. --- phpgwapi/inc/class.common.inc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 28f46136b4..48d141a24f 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -107,15 +107,13 @@ */ function sql_search($table,$owner=0) { - global $phpgw, $phpgw_info; - $this->debug_info[] = 'sql_search() is a deprecated function - use ACL instead'; $s = ''; if (!$owner) { - $owner = $phpgw_info['user']['account_id']; + $owner = $GLOBALS['phpgw_info']['user']['account_id']; } - $groups = $phpgw->accounts->membership(intval($owner)); + $groups = $GLOBALS['phpgw']->accounts->membership(intval($owner)); if (gettype($groups) == 'array') { while ($group = each($groups))