summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7dc416a)
raw | patch | inline | side by side (parent: 7dc416a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Sep 2007 13:49:59 +0000 (13:49 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc
index 4bf1a422eca4529efcd9c74088928d18538ce846..8ea3bcc392c5dd56a2cea4d70f082d03966d4c85 100644 (file)
/* 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{