plugins/kolab_addressbook
Aleksander Machniak
machniak at kolabsys.com
Thu Apr 24 15:24:40 CEST 2014
plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 68e7adfa04f8d15dcb4b3fadfbf9a8177fac54b2
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Thu Apr 24 15:23:41 2014 +0200
Fix invalid result count if search request returns no records (Bug #3013)
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));
}
More information about the commits
mailing list