diff options
| -rw-r--r-- | plugins/kolab_addressbook/rcube_kolab_contacts.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/kolab_addressbook/rcube_kolab_contacts.php b/plugins/kolab_addressbook/rcube_kolab_contacts.php index 54effa63c..b76d39aae 100644 --- a/plugins/kolab_addressbook/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/rcube_kolab_contacts.php @@ -189,13 +189,10 @@ class rcube_kolab_contacts extends rcube_addressbook public function get_record($id, $assoc=false) { $this->_fetch_data(); - if ($this->contacts[$id] && $assoc) { - return $this->contacts[$id]; - } - else if ($this->contacts[$id]) { + if ($this->contacts[$id]) { $this->result = new rcube_result_set(1); $this->result->add($this->contacts[$id]); - return $this->result; + return $assoc ? $this->contacts[$id] : $this->result; } return false; |
