From: hickert Date: Wed, 3 Aug 2005 09:17:38 +0000 (+0000) Subject: Fixed telephonenumber check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1658a104abb04142ccae8f8d0b0c2555238320aa;p=gosa.git Fixed telephonenumber check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1056 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 7de9e5aab..c2a459d1e 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -343,6 +343,10 @@ class phoneAccount extends plugin OR ((exten='".$this->phoneNumbers[$phonekey]."') AND (priority='hint'));"); while($atr = mysql_fetch_row($ress)){ $uid = preg_replace("/^.*\//","",$atr[5]); + if(empty($uid)){ + $uid = preg_replace("/^.*\//","",$atr[4]); + } + if($uid != $this->uid){ $this->generate_error = sprintf(_("This telephone number '%s' is already assigned to userID '%s'"),$this->phoneNumbers[$key],$uid); gosa_log(mysql_error());