Browse Source

fixed all log filter not showing the newest logs

CauseFX 4 years ago
parent
commit
f5035bf722
1 changed files with 1 additions and 1 deletions
  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));
 						}
 					}
 				}