Code

%telephoneNumber will be replace with first telephonenumber
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Oct 2005 09:27:43 +0000 (09:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Oct 2005 09:27:43 +0000 (09:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1480 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/phoneaccount/class_phoneAccount.inc

index ca9520191afd3d6bdd6f3f0509f2ad7bf6a0ea2e..ca5b6d0c9ca287673e144292b0cf303c50b94620 100644 (file)
@@ -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;
         }
       }