diff options
Diffstat (limited to 'settings/admin.php')
-rw-r--r-- | settings/admin.php | 3 |
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()); |