1
0
mirror of https://github.com/EGroupware/egroupware.git synced 2025-03-13 23:18:40 +01:00

Fix deleted filter to hide from select-entry widget also

This commit is contained in:
Nathan Gray 2010-02-11 20:43:11 +00:00
parent a67f231b74
commit adf9a0917f

View File

@ -605,7 +605,8 @@ class addressbook_so
} }
// Hide deleted items unless type is specifically deleted // Hide deleted items unless type is specifically deleted
if(array_key_exists('tid', $filter) && $filter['tid'] !== self::DELETED_TYPE) { if(!is_array($filter)) $filter = array();
if($filter['tid'] !== self::DELETED_TYPE) {
$filter[] = 'contact_tid != \'' . self::DELETED_TYPE . '\''; $filter[] = 'contact_tid != \'' . self::DELETED_TYPE . '\'';
} }