Sfoglia il codice sorgente

fixed all log filter not showing the newest logs

CauseFX 4 anni fa
parent
commit
f5035bf722
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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));
 						}
 					}
 				}