Parcourir la source

array is the second arg for implode

David Chan il y a 6 mois
Parent
commit
78e2d0e20a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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])) {