From: cajus Date: Tue, 18 Apr 2006 06:48:06 +0000 (+0000) Subject: Fixed logical problem with add variable not beeing set in some cases X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c60e1c4674ad90107651ebf76873bfc9bd9d52e0;p=gosa.git Fixed logical problem with add variable not beeing set in some cases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3048 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc index 80be71cfc..6b022edd3 100644 --- a/plugins/admin/systems/class_systemManagement.inc +++ b/plugins/admin/systems/class_systemManagement.inc @@ -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();