From: hickert Date: Thu, 18 May 2006 09:20:34 +0000 (+0000) Subject: Only show var content if there is no [*] within description X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=38d31b530c376c6863229931f8139dae911e179b;p=gosa.git 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 --- 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 .=""; }