From c60e1c4674ad90107651ebf76873bfc9bd9d52e0 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 18 Apr 2006 06:48:06 +0000 Subject: [PATCH] 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 --- plugins/admin/systems/class_systemManagement.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); -- 2.30.2