From: hickert Date: Tue, 13 Dec 2005 12:54:27 +0000 (+0000) Subject: cut long decriptiions to 60 chars X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e66ab74181a301304ba8af760c59481649855ab;p=gosa.git cut long decriptiions to 60 chars git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2306 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiTemplate.inc b/plugins/admin/fai/class_faiTemplate.inc index 0ead84015..f8d4c6b8b 100644 --- a/plugins/admin/fai/class_faiTemplate.inc +++ b/plugins/admin/fai/class_faiTemplate.inc @@ -180,7 +180,11 @@ class faiTemplate extends plugin $a_return=array(); foreach($this->SubObjects as $obj){ if($obj['status'] != "delete"){ + if((isset($obj['description']))&&(!empty($obj['description']))){ + if(strlen($obj['description']) > 60){ + $obj['description'] = substr($obj['description'],0,60)."..."; + } $a_return[$obj['cn']]= $obj['cn']." [".$obj['description']."]"; }else{ $a_return[$obj['cn']]= $obj['cn'];