From 329948e68522e9c48a4dbed327529632156233c6 Mon Sep 17 00:00:00 2001 From: Marc Tobias Metten Date: Tue, 27 Mar 2018 03:00:07 +0200 Subject: [PATCH] fix -undefined offset- error --- lib/Geocode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Geocode.php b/lib/Geocode.php index d0010417..612c1a0f 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -620,7 +620,7 @@ class Geocode } Debug::printDebugArray('Search context', $oCtx); - Debug::printDebugArray('Base search', $aSearches[0]); + Debug::printDebugArray('Base search', empty($aSearches) ? null : $aSearches[0]); Debug::printVar('Final query phrases', $aInPhrases); // Convert each phrase to standard form -- 2.39.5