summaryrefslogtreecommitdiff
path: root/program/include/rcube_contacts.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-07-17 19:01:28 +0000
committerthomascube <thomas@roundcube.net>2011-07-17 19:01:28 +0000
commit03eb13f11cf7dd695be3aab95b4e39e510169a49 (patch)
tree45b982f5ca3a7fa0caa01e71a4f95e08063a8042 /program/include/rcube_contacts.php
parent4d9f620292f9f22430a8d9e118e4853dc41d8def (diff)
Small improvements and codestyle
Diffstat (limited to 'program/include/rcube_contacts.php')
-rw-r--r--program/include/rcube_contacts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_contacts.php b/program/include/rcube_contacts.php
index 799d59618..3ad53a6db 100644
--- a/program/include/rcube_contacts.php
+++ b/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('');
}