Code

Fixed logical problem with add variable not beeing set in some cases
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Apr 2006 06:48:06 +0000 (06:48 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Apr 2006 06:48:06 +0000 (06:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3048 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_systemManagement.inc

index 80be71cfca651843583e08d4e85a507d842955f1..6b022edd3d033e399197ef4214ddd979e60e4ba2 100644 (file)
@@ -1150,6 +1150,7 @@ class systems extends plugin
       if ($tmp == ""){
         $tmp= $value["dn"];
       }
+      $add= "";
       if (preg_match ("/,ou=incoming,/i", $tmp)){
          if (in_array('gotoTerminal', $value['objectClass'])){
           $add= "- "._("New terminal");
@@ -1158,9 +1159,7 @@ class systems extends plugin
         }elseif (in_array('GOhard', $value['objectClass'])){
           $add= "- "._("New Device");
         }
-      } else {
-        $add= "";
-      }
+      } 
 
       $terminal = array();