From 00074b8fe7e219e864ce72f5ecd19aa4e57257dd Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 Sep 2007 13:49:59 +0000 Subject: [PATCH] Fixed network class detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7414 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNSeditZone.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc index 4bf1a422e..8ea3bcc39 100644 --- a/plugins/admin/systems/class_servDNSeditZone.inc +++ b/plugins/admin/systems/class_servDNSeditZone.inc @@ -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{ -- 2.30.2