Code

Fixed undefined index
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Apr 2006 08:18:19 +0000 (08:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Apr 2006 08:18:19 +0000 (08:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2953 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_termDNS.inc

index d543755b16182a08627df6566f33fc043848bdc9..653f9900c3ccfec3e7b7ea60d7c38cf0d722cacc 100644 (file)
@@ -42,9 +42,10 @@ class termDNS extends plugin
 
     plugin::plugin ($config, $dn);
 
-    $this->OrigCn = $this->attrs['cn'][0];
+    if(isset($this->attrs['cn'][0])){
+      $this->OrigCn = $this->attrs['cn'][0];
+    }
 
     /* Hide all dns specific code, if dns is not available 
      */
     $DNSenabled = false;