Explorar el Código

Fix the removal of expired bans

Visman hace 4 años
padre
commit
ce2a299ad0
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      app/Models/BanList/Load.php

+ 4 - 1
app/Models/BanList/Load.php

@@ -79,7 +79,10 @@ class Load extends Method
             if (
             if (
                 null !== $expire
                 null !== $expire
                 && $expire > 0
                 && $expire > 0
-                && $expire < $first
+                && (
+                    0 === $first
+                    || $expire < $first
+                )
             ) {
             ) {
                 $first = $expire;
                 $first = $expire;
             }
             }