瀏覽代碼

array is the second arg for implode

David Chan 10 月之前
父節點
當前提交
78e2d0e20a
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      api/classes/ping.class.php

+ 1 - 1
api/classes/ping.class.php

@@ -219,7 +219,7 @@ class Ping
 		exec($exec_string, $output, $return);
 		// Strip empty lines and reorder the indexes from 0 (to make results more
 		// uniform across OS versions).
-		$this->commandOutput = implode($output, '');
+		$this->commandOutput = implode('', $output);
 		$output = array_values(array_filter($output));
 		// If the result line in the output is not empty, parse it.
 		if (!empty($output[1])) {