Code

Fixed network class detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Sep 2007 13:49:59 +0000 (13:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Sep 2007 13:49:59 +0000 (13:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7414 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDNSeditZone.inc

index 4bf1a422eca4529efcd9c74088928d18538ce846..8ea3bcc392c5dd56a2cea4d70f082d03966d4c85 100644 (file)
@@ -116,11 +116,11 @@ class servdnseditZone extends plugin
     /* Detect Network class */
     if(!empty($this->ReverseZone)){
 
-      $dots = count(split(".",$this->ReverseZone));
-      if($dots == 0){
+      $dots = count(split("\.",$this->ReverseZone));
+      if($dots == 1){
         $this->NetworkClass = "A";  
         $this->ReverseZone .= ".0.0.0"; 
-      }elseif($dots == 1){
+      }elseif($dots == 2){
         $this->NetworkClass = "B";  
         $this->ReverseZone .= ".0.0"; 
       }else{