Merge pull request #15887 from owncloud/issue-15885-empty-getenv-path

Can't use function return value in write context
This commit is contained in:
Thomas Müller 2015-04-27 15:16:27 +02:00
commit 3b54161164

View file

@ -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());