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:
commit
3b54161164
|
@ -120,7 +120,8 @@ $template->assign('databaseOverload', $databaseOverload);
|
||||||
$template->assign('cronErrors', $appConfig->getValue('core', 'cronErrors'));
|
$template->assign('cronErrors', $appConfig->getValue('core', 'cronErrors'));
|
||||||
|
|
||||||
// warn if php is not setup properly to get system variables with getenv
|
// 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
|
// warn if Windows is used
|
||||||
$template->assign('WindowsWarning', OC_Util::runningOnWindows());
|
$template->assign('WindowsWarning', OC_Util::runningOnWindows());
|
||||||
|
|
Loading…
Reference in New Issue