浏览代码

Fix the removal of expired bans

Visman 4 年之前
父节点
当前提交
ce2a299ad0
共有 1 个文件被更改,包括 4 次插入1 次删除
  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;
             }