Skip to content

Commit

Permalink
Avoid PHP warning if $results is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 23, 2019
1 parent be2e4c4 commit d8d48de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -3497,7 +3497,7 @@ protected function _searchGal(array $query)

// Honor range, and don't bother if no results
$results = array_pop($results);
$count = count($results);
$count = !empty($results) ? count($results) : 0;
if (!$count) {
$this->_endBuffer();
return $return;
Expand Down

0 comments on commit d8d48de

Please sign in to comment.