summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-04-24 13:23:41 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-04-24 13:23:41 (GMT)
commit68e7adfa04f8d15dcb4b3fadfbf9a8177fac54b2 (patch)
tree2686595aa6e4b6aba82ffdcb7098fc658e2211af /plugins
parente987e51af2770972166097017ef09104e8c9a6a4 (diff)
downloadroundcubemail-plugins-kolab-68e7adfa04f8d15dcb4b3fadfbf9a8177fac54b2.tar.gz
Fix invalid result count if search request returns no records (Bug #3013)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/kolab_addressbook/lib/rcube_kolab_contacts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
index 6838f1e..c72c072 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
@@ -338,7 +338,7 @@ class rcube_kolab_contacts extends rcube_addressbook
}
}
else {
- $this->result->count = $this->storagefolder->count($query);
+ $this->result->count = isset($query) ? $this->storagefolder->count($query) : 0;
foreach ($this->dataset as $idx => $record) {
$this->result->add($this->_to_rcube_contact($record));
}