From: hickert Date: Mon, 8 Aug 2005 09:28:26 +0000 (+0000) Subject: Phonequeues won't detect themselfes as used phonenumber X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af68c0eb4e77ea7e8f783b08fa1396a8fd8463b7;p=gosa.git Phonequeues won't detect themselfes as used phonenumber git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1074 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/ogroups/class_phonequeue.inc b/plugins/admin/ogroups/class_phonequeue.inc index c2cc8216c..2dd49709d 100644 --- a/plugins/admin/ogroups/class_phonequeue.inc +++ b/plugins/admin/ogroups/class_phonequeue.inc @@ -416,9 +416,8 @@ class phonequeue extends plugin } } - foreach($this->telephoneNumber as $num){ - if((isset($numbers[$num]))&&(($numbers[$num]['cn'][0]!= $this->cn)||($numbers[$num]['uid'][0]!=$this->uid))){ + if((isset($numbers[$num]))&&(($numbers[$num]['cn'][0]!= $this->attrs['cn'][0]))){ if(isset($numbers[$num]['uid'][0])){ return sprintf(_("The specified telephonenumber '%s' is already assigned to '%s'."),$num,$numbers[$num]['uid'][0]); }else{