From 1658a104abb04142ccae8f8d0b0c2555238320aa Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 3 Aug 2005 09:17:38 +0000 Subject: [PATCH] Fixed telephonenumber check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1056 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 4 ++++ 1 file changed, 4 insertions(+) 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()); -- 2.30.2