From 91bc8ea674be74eeda34e589ba62b3277fff4f07 Mon Sep 17 00:00:00 2001
From: redray <redray@ispconfig3>
Date: Tue, 2 Dec 2008 00:39:36 +0000
Subject: [PATCH] another dns serial fix

---
 interface/lib/classes/validate_dns.inc.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/interface/lib/classes/validate_dns.inc.php b/interface/lib/classes/validate_dns.inc.php
index 95f1d42f9..4606a0cef 100644
--- a/interface/lib/classes/validate_dns.inc.php
+++ b/interface/lib/classes/validate_dns.inc.php
@@ -272,6 +272,10 @@ function increase_serial($serial){
   $current_date = date("Ymd");
   if($serial_date >= $current_date){
     $count += 1;
+    if ($count > 99) {
+        $serial_date += 1;
+        $count = 0;
+    }
     $count = str_pad($count, 2, "0", STR_PAD_LEFT);
     $new_serial = $serial_date.$count;
   } else {
-- 
GitLab