| @@ 491-499 (lines=9) @@ | ||
| 488 | { |
|
| 489 | static $cache_accountid = array(); |
|
| 490 | ||
| 491 | if(isset($cache_accountid[$accountid])) |
|
| 492 | { |
|
| 493 | $account_id = $cache_accountid[$accountid]; |
|
| 494 | } |
|
| 495 | else |
|
| 496 | { |
|
| 497 | $account_id = get_account_id($accountid,$this->account_id); |
|
| 498 | $cache_accountid[$accountid] = $account_id; |
|
| 499 | } |
|
| 500 | $rights = 0; |
|
| 501 | $apps = false; |
|
| 502 | foreach($this->db->select(self::TABLE,array('acl_appname','acl_rights'),array( |
|
| @@ 532-539 (lines=8) @@ | ||
| 529 | { |
|
| 530 | static $cache_accountid = array(); |
|
| 531 | ||
| 532 | if(isset($cache_accountid[$accountid])) |
|
| 533 | { |
|
| 534 | $accountid = $cache_accountid[$accountid]; |
|
| 535 | } |
|
| 536 | else |
|
| 537 | { |
|
| 538 | $accountid = $cache_accountid[$accountid] = get_account_id($accountid,$this->account_id); |
|
| 539 | } |
|
| 540 | $locations = false; |
|
| 541 | foreach($this->db->select(self::TABLE,'acl_location,acl_rights',array( |
|
| 542 | 'acl_appname' => $app, |
|
| @@ 615-623 (lines=9) @@ | ||
| 612 | { |
|
| 613 | static $cache_accountid = array(); |
|
| 614 | ||
| 615 | if(isset($cache_accountid[$accountid])) |
|
| 616 | { |
|
| 617 | $account_id = $cache_accountid[$accountid]; |
|
| 618 | } |
|
| 619 | else |
|
| 620 | { |
|
| 621 | $account_id = get_account_id($accountid,$this->account_id); |
|
| 622 | $cache_accountid[$accountid] = $account_id; |
|
| 623 | } |
|
| 624 | if ($use_memberships && (int)$account_id > 0) $memberships = $GLOBALS['egw']->accounts->memberships($account_id, true); |
|
| 625 | $memberships[] = (int)$account_id; |
|
| 626 | ||