Can't use function return value in write context

This commit is contained in:
Joas Schilling 2015-04-27 14:28:31 +02:00
parent 93c25a1f4a
commit 1341d03455
1 changed files with 2 additions and 1 deletions

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