Ver Fonte

fixed all log filter not showing the newest logs

CauseFX há 4 anos atrás
pai
commit
f5035bf722
1 ficheiros alterados com 1 adições e 1 exclusões
  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) {
 					foreach ($logs as $log) {
 						if (file_exists($log)) {
 						if (file_exists($log)) {
 							$lineGenerator = Bcremer\LineReader\LineReader::readLinesBackwards($log);
 							$lineGenerator = Bcremer\LineReader\LineReader::readLinesBackwards($log);
-							$lines = array_merge(iterator_to_array($lineGenerator), $lines);
+							$lines = array_merge($lines, iterator_to_array($lineGenerator));
 						}
 						}
 					}
 					}
 				}
 				}