From 555f4f2f54348c085eb6cd7c4932314292a0b1a0 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 16 Jan 2007 10:37:59 +0000 Subject: [PATCH] Just add uid related entry if uid is not numeric git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5574 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 20948dea2..7f585a613 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -699,12 +699,15 @@ class phoneAccount extends plugin $i = 0; $EXT = array(); - $EXT[$i]['context'] = 'GOsa'; - $EXT[$i]['exten'] = $this->uid; - $EXT[$i]['priority']= 1; - $EXT[$i]['app'] = "Goto"; - $EXT[$i]['appdata'] = $newnums[$i_new_key]."|1"; - $i ++; + + if(!is_numeric($this->uid)){ + $EXT[$i]['context'] = 'GOsa'; + $EXT[$i]['exten'] = $this->uid; + $EXT[$i]['priority']= 1; + $EXT[$i]['app'] = "Goto"; + $EXT[$i]['appdata'] = $newnums[$i_new_key]."|1"; + $i ++; + } // Entension entries Hint / Dial / Goto foreach($newnums as $s_telenums){ -- 2.30.2