From 38d31b530c376c6863229931f8139dae911e179b Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 18 May 2006 09:20:34 +0000 Subject: [PATCH] Only show var content if there is no [*] within description git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3420 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiSummaryTab.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/admin/fai/class_faiSummaryTab.inc b/plugins/admin/fai/class_faiSummaryTab.inc index a2c48016c..8d8213b83 100644 --- a/plugins/admin/fai/class_faiSummaryTab.inc +++ b/plugins/admin/fai/class_faiSummaryTab.inc @@ -279,7 +279,10 @@ class faiSummaryTab extends plugin{ if(isset($data['description'][0])){ $str .= " [".$data['description'][0]."] "; } - $str .=" = '".$data['FAIvariableContent'][0]."'"; + /* Only display FAIvariableContent if description dosn't contain [*] */ + if(isset($data['description'][0]) && !preg_match("#\[\*\]#",$data['description'][0])){ + $str .=" = '".$data['FAIvariableContent'][0]."'"; + } $str .= "".$data['CLASS'].""; $str .=""; } -- 2.30.2