Andy Postnikov пре 4 година
родитељ
комит
a4e37c66ae
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -263,7 +263,7 @@ class Service
         $files = [];
         if (!empty($status['scripts']) && $this->getOption('allow_filelist')) {
             uasort($status['scripts'], function ($a, $b) {
-                return $a['hits'] < $b['hits'];
+                return $a['hits'] <=> $b['hits'];
             });
             foreach ($status['scripts'] as &$file) {
                 $file['full_path'] = str_replace('\\', '/', $file['full_path']);