summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-27 15:16:27 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-27 15:16:27 +0200
commit3b54161164229b5f48ced22d7db73d90406bcc32 (patch)
tree42bb62b155cafe2a9c274e4664cebe5ad07f6fff
parent7d0eba7a417b28b6dbf12db277be0ed03e8cd0bc (diff)
parent1341d03455d8ee90313661b3ebb3314e5c5bde08 (diff)
downloadnextcloud-server-3b54161164229b5f48ced22d7db73d90406bcc32.tar.gz
nextcloud-server-3b54161164229b5f48ced22d7db73d90406bcc32.zip
Merge pull request #15887 from owncloud/issue-15885-empty-getenv-path
Can't use function return value in write context
-rw-r--r--settings/admin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/admin.php b/settings/admin.php
index b8d8c67d0f7..e8d9c6530db 100644
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -120,7 +120,8 @@ $template->assign('databaseOverload', $databaseOverload);
$template->assign('cronErrors', $appConfig->getValue('core', 'cronErrors'));
// warn if php is not setup properly to get system variables with getenv
-$template->assign('getenvServerNotWorking', empty(getenv('PATH')));
+$path = getenv('PATH');
+$template->assign('getenvServerNotWorking', empty($path));
// warn if Windows is used
$template->assign('WindowsWarning', OC_Util::runningOnWindows());