Skip to content
Snippets Groups Projects
Commit 62e6cbe3 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Avoid PHP notice accessing potentially undefined array key.

parent aef88fed
Branches
Tags
No related merge requests found
...@@ -530,7 +530,7 @@ EOT; ...@@ -530,7 +530,7 @@ EOT;
$searchType = $escape($params->getSearchType()); $searchType = $escape($params->getSearchType());
$resultCount = 0; $resultCount = 0;
foreach ($combinedResults as $currentSearch) { foreach ($combinedResults as $currentSearch) {
if ($currentSearch['ajax']) { if (!empty($currentSearch['ajax'])) {
// Some results fetched via ajax, so report that we don't know the // Some results fetched via ajax, so report that we don't know the
// result count. // result count.
$resultCount = 'false'; $resultCount = 'false';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment