fixed addressbook "all" showed only accounts

This commit is contained in:
Ralf Becker 2013-01-25 23:39:37 +00:00
parent 9d8c2f42c9
commit 5bb9cd1ad0

View File

@ -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_status='A'";
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')";
/**
* internal name of the id, gets mapped to uid