From 7f551f895e0f6104a9f641c00bf9a6b32e6dd318 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 18 Feb 2001 22:30:53 +0000 Subject: [PATCH] fix for php4'isms --- phpgwapi/inc/class.accounts_shared.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.accounts_shared.inc.php b/phpgwapi/inc/class.accounts_shared.inc.php index 1ac0a11b21..2296c803ef 100644 --- a/phpgwapi/inc/class.accounts_shared.inc.php +++ b/phpgwapi/inc/class.accounts_shared.inc.php @@ -55,12 +55,12 @@ function memberships($account_id = False) { global $phpgw_info, $phpgw; - if ($account_id == ''){ $account_id = $phpgw_info['user']['account_id']; } + if ($account_id == False){ $account_id = $phpgw_info['user']['account_id']; } elseif (gettype($account_id) == 'string') { $account_id = $this->name2id($account_id); } $security_equals = Array(); $security_equals = $phpgw->acl->get_location_list_for_id('phpgw_group', 1, intval($account_id)); - if (!$security_equals) { return False; } + if ($security_equals == False) { return False; } for ($idx=0; $idxid2name(intval($security_equals[$idx])); $this->memberships[] = Array('account_id' => $security_equals[$idx], 'account_name' => "$name"); @@ -71,7 +71,7 @@ function members ($account_id = False) { global $phpgw_info, $phpgw; - if ($account_id == ''){ $account_id = $phpgw_info['user']['account_id']; } + if ($account_id == False){ $account_id = $phpgw_info['user']['account_id']; } elseif (gettype($account_id) == 'string') { $account_id = $this->name2id($account_id); } $security_equals = Array();