From eea5de1559743e58f7ebe338804fbf63153ee274 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 2 Aug 2013 18:28:44 +0000 Subject: [PATCH] an other case in which we need to filter out in-active accounts --- addressbook/inc/class.addressbook_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_sql.inc.php b/addressbook/inc/class.addressbook_sql.inc.php index e5666e5a05..97e9119233 100644 --- a/addressbook/inc/class.addressbook_sql.inc.php +++ b/addressbook/inc/class.addressbook_sql.inc.php @@ -339,7 +339,7 @@ class addressbook_sql extends so_sql_cf unset($filter['list']); } // add join to show only active accounts (only if accounts are shown and in sql and we not already join the accounts table, eg. used by admin) - if (!$owner && substr($this->account_repository,0,3) == 'sql' && + if ((is_array($owner) ? in_array(0, $owner) : !$owner) && substr($this->account_repository,0,3) == 'sql' && strpos($join,$GLOBALS['egw']->accounts->backend->table) === false && !array_key_exists('account_id',$filter)) { $join .= self::ACCOUNT_ACTIVE_JOIN;