Explorar el Código

fixed all log filter not showing the newest logs

CauseFX hace 4 años
padre
commit
f5035bf722
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/functions/log-functions.php

+ 1 - 1
api/functions/log-functions.php

@@ -99,7 +99,7 @@ trait LogFunctions
 					foreach ($logs as $log) {
 						if (file_exists($log)) {
 							$lineGenerator = Bcremer\LineReader\LineReader::readLinesBackwards($log);
-							$lines = array_merge(iterator_to_array($lineGenerator), $lines);
+							$lines = array_merge($lines, iterator_to_array($lineGenerator));
 						}
 					}
 				}