Avoid warnings if dataset is not set
This commit is contained in:
parent
cbe184364c
commit
a1b146a8dd
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ class rcube_kolab_contacts extends rcube_addressbook
|
|||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
else if (isset($this->dataset)) {
|
||||
$this->result->count = isset($query) ? $this->storagefolder->count($query) : 0;
|
||||
foreach ($this->dataset as $idx => $record) {
|
||||
$this->result->add($this->_to_rcube_contact($record));
|
||||
|
|
Loading…
Add table
Reference in a new issue