From af68c0eb4e77ea7e8f783b08fa1396a8fd8463b7 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 8 Aug 2005 09:28:26 +0000 Subject: [PATCH] Phonequeues won't detect themselfes as used phonenumber git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1074 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/ogroups/class_phonequeue.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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{ -- 2.30.2