From 7ff829cdfd96a3c1e6d3a182d8aace244d7ae9c1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 29 Jan 2013 11:26:54 +0000 Subject: [PATCH] fixed groups without account_status="A" are not found --- 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 a46c0eae39..e00a3b332e 100644 --- a/addressbook/inc/class.addressbook_sql.inc.php +++ b/addressbook/inc/class.addressbook_sql.inc.php @@ -32,7 +32,7 @@ class addressbook_sql extends so_sql_cf * filter to show only active account (and not already expired or deactived ones) * UNIX_TIMESTAMP(NOW()) gets replaced with value of time() in the code! */ - const ACOUNT_ACTIVE_FILTER = "(account_expires IS NULL OR account_expires = -1 OR account_expires > UNIX_TIMESTAMP(NOW())) AND (account_lid IS NULL OR account_status='A')"; + const ACOUNT_ACTIVE_FILTER = "(account_expires IS NULL OR account_expires = -1 OR account_expires > UNIX_TIMESTAMP(NOW())) AND (account_type IS NULL OR account_type!='u' OR account_status='A')"; /** * internal name of the id, gets mapped to uid