Always return a valid array/iterator
This commit is contained in:
parent
449b4d044a
commit
98741574d9
1 changed files with 2 additions and 2 deletions
|
@ -453,7 +453,7 @@ class kolab_storage_cache
|
|||
);
|
||||
|
||||
if ($this->db->is_error($sql_result)) {
|
||||
return null;
|
||||
return $result;
|
||||
}
|
||||
|
||||
while ($sql_arr = $this->db->fetch_assoc($sql_result)) {
|
||||
|
@ -483,7 +483,7 @@ class kolab_storage_cache
|
|||
}
|
||||
|
||||
if ($index->is_error()) {
|
||||
return null;
|
||||
return $result;
|
||||
}
|
||||
|
||||
$index = $index->get();
|
||||
|
|
Loading…
Add table
Reference in a new issue