mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
A few missed GLOBALS.
This commit is contained in:
parent
cc10a86411
commit
8f0c5ddedb
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user