summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7c1445a)
raw | patch | inline | side by side (parent: 7c1445a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Aug 2005 09:39:18 +0000 (09:39 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Aug 2005 09:39:18 +0000 (09:39 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1098 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 37e71613829ecc2a5878c2613d4a7aa2df3a2499..90480d9a5a0a6351aae8862b3696b688785a95e5 100644 (file)
function check()
{
$message= array();
+ if(!$this->is_account) return($message);
if($this->is_number_used()){
$message[] = $this->is_number_used();
/* Append new Member for this queue */
$i = 0;
+ $queueuser =array();
foreach($this->parent->by_object['ogroup']->memberList as $member){
if(in_array("goFonAccount",$member['objectClass'])){
$i ++ ;
}
/* Parse and Add members to query Array */
- foreach($queueuser as $user){
- $entries = "";
- $values = "";
- foreach($user as $attr => $val){
- $entries.= "`".$attr."`,";
- $values .= "'".$val."',";
+ if(is_array($queueuser)){
+ foreach($queueuser as $user){
+ $entries = "";
+ $values = "";
+ foreach($user as $attr => $val){
+ $entries.= "`".$attr."`,";
+ $values .= "'".$val."',";
+ }
+ $values = preg_replace("/,$/","",$values);
+ $entries = preg_replace("/,$/","",$entries );
+
+ $SQL[]="INSERT INTO ".$a_SETUP['QUEUE_MEMBER_TABLE']." (".$entries.") VALUES (".$values.")";
}
- $values = preg_replace("/,$/","",$values);
- $entries = preg_replace("/,$/","",$entries );
-
- $SQL[]="INSERT INTO ".$a_SETUP['QUEUE_MEMBER_TABLE']." (".$entries.") VALUES (".$values.")";
}
function save()
{
+ if(!$this->is_account) return;
$ldap= $this->config->get_ldap_link();
plugin::save();