From 5d94cc9f05c0441cde1ce6223eb22a51ece59db5 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Oct 2005 09:27:43 +0000 Subject: [PATCH] %telephoneNumber will be replace with first telephonenumber git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1480 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } } -- 2.30.2