summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f9c739)
raw | patch | inline | side by side (parent: 6f9c739)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Aug 2005 09:17:38 +0000 (09:17 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Aug 2005 09:17:38 +0000 (09:17 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1056 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/phoneaccount/class_phoneAccount.inc | patch | blob | history |
diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index 7de9e5aab0a309d1f004a44464bfa98ac4d275b9..c2a459d1ea38d9a2e5c0e7ed1c3a43d90ea6bd7a 100644 (file)
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());