Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2017-03-21 23:38:46 +0300
committersgiehl <stefan@piwik.org>2017-03-21 23:38:46 +0300
commitfffd05b98b77aeb05b1c3ca1f9da26e8f7d8e9ba (patch)
tree1da9b4ab7750a4b9389d9636b933f1560beaf533 /plugins
parent56a4e91210108621e864acf90a563c26dbfc732b (diff)
refs #11389 - prevents possible php warning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php b/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php
index 5dd8c7b766..c01660bbc0 100644
--- a/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php
+++ b/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php
@@ -41,7 +41,7 @@ class GeolocationDiagnostic implements Diagnostic
$currentProviderId = LocationProvider::getCurrentProviderId();
$allProviders = LocationProvider::getAllProviderInfo();
$isRecommendedProvider = in_array($currentProviderId, array(LocationProvider\GeoIp\Php::ID, $currentProviderId == LocationProvider\GeoIp\Pecl::ID));
- $isProviderInstalled = ($allProviders[$currentProviderId]['status'] == LocationProvider::INSTALLED);
+ $isProviderInstalled = (isset($allProviders[$currentProviderId]['status']) && $allProviders[$currentProviderId]['status'] == LocationProvider::INSTALLED);
if ($isRecommendedProvider && $isProviderInstalled) {
return array(DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_OK));