From: hickert Date: Tue, 16 Jan 2007 10:37:59 +0000 (+0000) Subject: Just add uid related entry if uid is not numeric X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=555f4f2f54348c085eb6cd7c4932314292a0b1a0;p=gosa.git 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 --- 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){