diff --git a/core/user_settings/user_dashboard.php b/core/user_settings/user_dashboard.php index 7ef8b8f0eb..c8cbabbec9 100644 --- a/core/user_settings/user_dashboard.php +++ b/core/user_settings/user_dashboard.php @@ -939,7 +939,11 @@ //disk usage if (stristr(PHP_OS, 'Linux')) { $df = shell_exec("/usr/bin/which df"); - $tmp = shell_exec($df." /home 2>&1"); + if($df){ + $tmp = shell_exec($df." /home 2>&1"); + } else { + $tmp = shell_exec("df /home 2>&1"); + } $tmp = explode("\n", $tmp); $tmp = preg_replace('!\s+!', ' ', $tmp[1]); // multiple > single space $tmp = explode(' ', $tmp);