summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-12 15:26:49 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-12 15:26:49 +0100
commitb356d0dfc45c8535ce9032bae866fca873de6e38 (patch)
tree238ee727ac770398b1ac7b74f1d7d52a61d2dc41 /lib/private/legacy
parent33a6e265b24f7da3092fb55d50ef14e8ada6858d (diff)
downloadnextcloud-server-b356d0dfc45c8535ce9032bae866fca873de6e38.tar.gz
nextcloud-server-b356d0dfc45c8535ce9032bae866fca873de6e38.zip
Fix explode() call in legacy/helper.php to have correct types
Found while enabling strict_typing for PHP7+. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php
index 8bbfb235ee2..e88e967a57b 100644
--- a/lib/private/legacy/helper.php
+++ b/lib/private/legacy/helper.php
@@ -477,12 +477,12 @@ class OC_Helper {
return false;
}
$ini = \OC::$server->getIniWrapper();
- $disabled = explode(',', $ini->get('disable_functions'));
+ $disabled = explode(',', $ini->get('disable_functions') ?: '');
$disabled = array_map('trim', $disabled);
if (in_array($function_name, $disabled)) {
return false;
}
- $disabled = explode(',', $ini->get('suhosin.executor.func.blacklist'));
+ $disabled = explode(',', $ini->get('suhosin.executor.func.blacklist') ?: '');
$disabled = array_map('trim', $disabled);
if (in_array($function_name, $disabled)) {
return false;