summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-07-17 19:01:28 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-07-17 19:01:28 +0000
commitb772e0d375671deefe378fd2593523493bddced9 (patch)
tree3a6c6013286255451b5a03b97c338189b3fae872 /roundcubemail/program/include
parenteaaf07ebdfb56e9212b7b2f1896411f74d98327c (diff)
Small improvements and codestyle
git-svn-id: https://svn.roundcube.net/trunk@4932 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcube_contacts.php2
1 files changed, 1 insertions, 1 deletions
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('');
}