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:
authorThomas Steur <thomas.steur@gmail.com>2015-10-27 01:14:04 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-10-27 01:14:04 +0300
commit268a1e0ac93e71077c0f7177c758b502c7008ba8 (patch)
tree9b10244d404f52349d8933b8a42b91f8cf16f3db /core/SettingsServer.php
parent2c9b9ee11a3937105f1c726ae530fddc60834e6a (diff)
fixes #9090 SettingsServer.php - in_array() expects parameter 2
Diffstat (limited to 'core/SettingsServer.php')
-rw-r--r--core/SettingsServer.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/SettingsServer.php b/core/SettingsServer.php
index 3f6fbb8878..d84e3ff483 100644
--- a/core/SettingsServer.php
+++ b/core/SettingsServer.php
@@ -127,9 +127,14 @@ class SettingsServer
{
static $gd = null;
if (is_null($gd)) {
+ $gd = false;
+
$extensions = @get_loaded_extensions();
- $gd = in_array('gd', $extensions) && function_exists('imageftbbox');
+ if (is_array($extensions)) {
+ $gd = in_array('gd', $extensions) && function_exists('imageftbbox');
+ }
}
+
return $gd;
}