From: hickert Date: Wed, 5 Oct 2005 09:27:43 +0000 (+0000) Subject: %telephoneNumber will be replace with first telephonenumber X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5d94cc9f05c0441cde1ce6223eb22a51ece59db5;p=gosa.git %telephoneNumber will be replace with first telephonenumber git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1480 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index ca9520191..ca5b6d0c9 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -660,7 +660,9 @@ class phoneAccount extends plugin $string = preg_replace("/%telephoneNumber_".($i+1)."/i",$tmp[$i],$string); } } - + if(isset($tmp[0])){ + $string = preg_replace("/%telephoneNumber/i",$tmp[0],$string); + } $this->macroarray[$this->macro][$key]['choosen']=$string; } }