From: hickert Date: Thu, 29 Apr 2010 15:07:01 +0000 (+0000) Subject: Cleaned up last commit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=33b822570b0d8d8fde3f3ba4ad877d4edd5f1741;p=gosa.git Cleaned up last commit -Mark some rows in system listing e.g. for locked systems git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17974 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 94f8a7bc4..d9b59cf66 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -1365,29 +1365,11 @@ class systemManagement extends management static function filterSystemDescription($row,$dn,$pid,$description=array()) { - $result= " "; - - $row= func_get_arg(0); $dn= LDAP::fix(func_get_arg(1)); - $params= array(func_get_arg(2)); - - // Collect sprintf params - for ($i = 3;$i < func_num_args();$i++) { - $val= func_get_arg($i); - if (is_array($val)){ - $params[]= $val[0]; - continue; - } - $params[]= $val; - } - - $result= " "; - $trans= call_user_func_array("sprintf", $params); - if ($trans != "") { - return("$trans"); - } - - return $result; + $desc = isset($description[0])?$description[0]:" "; + $rc = ""; + $rc = ""; + return("{$desc}{$rc}"); } static function systemRelease($a,$b,$c,$objectclasses= null,$class= null)