summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 483babc)
raw | patch | inline | side by side (parent: 483babc)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 16 Sep 2005 09:10:47 +0000 (09:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 16 Sep 2005 09:10:47 +0000 (09:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1375 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/ogroups/class_phonequeue.inc | patch | blob | history |
diff --git a/plugins/admin/ogroups/class_phonequeue.inc b/plugins/admin/ogroups/class_phonequeue.inc
index 1e81e09780bfa7927882421c9ee05dfcba9608d0..f688753cea3ee93b9c2f595d48b75ecb50c5bad1 100644 (file)
$i = 0;
+
+ $i_insert_only_once = false;
+
foreach($this->telephoneNumber as $num){
// If there are no member in a Queue
// A Queue is not deleted directly, it is stored until the o group is deleted
- $a_ext[$i]['context'] = 'GOsa';
- $a_ext[$i]['exten'] = $this->attrs['cn'][0];
- $a_ext[$i]['priority'] = 1;
- $a_ext[$i]['app'] = "Goto";
- $a_ext[$i]['appdata'] = $num."|1";
- $i ++ ;
+ if($i_insert_only_once == false){
+ $i_insert_only_once = true;
+ $a_ext[$i]['context'] = 'GOsa';
+ $a_ext[$i]['exten'] = $this->attrs['cn'][0];
+ $a_ext[$i]['priority'] = 1;
+ $a_ext[$i]['app'] = "Goto";
+ $a_ext[$i]['appdata'] = $num."|1";
+ $i ++ ;
+ }
if($queueusers == 0){
$a_ext[$i]['context'] = 'GOsa';