Explorar o código

Fix the removal of expired bans

Visman %!s(int64=4) %!d(string=hai) anos
pai
achega
ce2a299ad0
Modificáronse 1 ficheiros con 4 adicións e 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 (
                 null !== $expire
                 && $expire > 0
-                && $expire < $first
+                && (
+                    0 === $first
+                    || $expire < $first
+                )
             ) {
                 $first = $expire;
             }