ソースを参照

Update user_dashboard.php

FusionPBX 7 年 前
コミット
e6c5b06f37
1 ファイル変更1 行追加7 行削除
  1. 1 7
      core/user_settings/user_dashboard.php

+ 1 - 7
core/user_settings/user_dashboard.php

@@ -929,7 +929,6 @@
 			$n++;
 		}
 
-
 	//system status
 		if (is_array($selected_blocks) && in_array('system', $selected_blocks)) {
 			$c = 0;
@@ -940,12 +939,7 @@
 
 			//disk usage
 			if (PHP_OS == 'FreeBSD' || PHP_OS == 'Linux') {
-				$df = shell_exec("/usr/bin/which df");
-				if($df){
-					$tmp = shell_exec($df." /home 2>&1");
-				} else {
-					$tmp = shell_exec("df /home 2>&1");
-				}
+				$tmp = shell_exec("df /home 2>&1");
 				$tmp = explode("\n", $tmp);
 				$tmp = preg_replace('!\s+!', ' ', $tmp[1]); // multiple > single space
 				$tmp = explode(' ', $tmp);