From 0e66ab74181a301304ba8af760c59481649855ab Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 13 Dec 2005 12:54:27 +0000 Subject: [PATCH] cut long decriptiions to 60 chars git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2306 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiTemplate.inc | 4 ++++ 1 file changed, 4 insertions(+) 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']; -- 2.30.2