From 8c916acaa3c4208c4ec811beda10ed4fa90c30fe Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 12 Jul 2006 05:31:54 +0000 Subject: [PATCH] Fixed remove flag toggle git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4110 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPackage.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index 26b10f27d..3c35bf755 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -421,13 +421,15 @@ class faiPackage extends plugin $dsc= ""; if (preg_match('/^-/', $usedName)){ $dsc= " - "._("Package marked for removal"); - $usedName= preg_replace('/^-/', '! ', $usedName); + $usedName2= preg_replace('/^-/', '! ', $usedName); + }else{ + $usedName2= $usedName; } if(isset($this->list[$usedName][1])){ - $a_ret[$usedName] = $usedName." [".$this->list[$usedName][1]."]".$c_str.$dsc; + $a_ret[$usedName] = $usedName2." [".$this->list[$usedName][1]."]".$c_str.$dsc; }else{ - $a_ret[$usedName] = $usedName.$c_str.$dsc; + $a_ret[$usedName] = $usedName2.$c_str.$dsc; } } } -- 2.30.2