Quellcode durchsuchen

Merge pull request #2044 from chandeeland/implode-fix

array is the second arg for implode
causefx vor 2 Monaten
Ursprung
Commit
b664f8f7a5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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])) {