From b772e0d375671deefe378fd2593523493bddced9 Mon Sep 17 00:00:00 2001 From: thomasb Date: Sun, 17 Jul 2011 19:01:28 +0000 Subject: Small improvements and codestyle git-svn-id: https://svn.roundcube.net/trunk@4932 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/include/rcube_contacts.php') diff --git a/roundcubemail/program/include/rcube_contacts.php b/roundcubemail/program/include/rcube_contacts.php index 799d59618..3ad53a6db 100644 --- a/roundcubemail/program/include/rcube_contacts.php +++ b/roundcubemail/program/include/rcube_contacts.php @@ -300,7 +300,7 @@ class rcube_contacts extends rcube_addressbook } } - foreach ($required as $col) { + foreach (array_intersect($required, $this->table_cols) as $col) { $and_where[] = $this->db->quoteIdentifier($col).' <> '.$this->db->quote(''); } -- cgit v1.2.3