Code

refresh sip table if phone settings changed
[gosa.git] / plugins / admin / groups / class_groupApplication.inc
index 593d4e13d6b7305ec265f45c1765ffcafe121cba..57bb2c0c599ff8e528cbb7b3e8b3538758f928ea 100644 (file)
@@ -57,7 +57,7 @@ class appgroup extends plugin
 
     /* Do we represent a valid group? */
     if (!$this->is_account && $this->parent == NULL){
-      $display= "<img src=\"images/stop.png\" align=center>&nbsp;<b>".
+      $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\">&nbsp;<b>".
         _("This 'dn' is no appgroup.")."</b>";
       return ($display);
     }
@@ -126,7 +126,7 @@ class appgroup extends plugin
           }
 
           /* Create edit field */
-          $table= "<table>";
+          $table= "<table summary=\"\">";
           for ($i= 0; $i < count($this->option_name); $i++){
             if (isset($this->option_value[$i])){
               $value= $this->option_value[$i];
@@ -272,8 +272,17 @@ class appgroup extends plugin
     reset ($this->apps);
 
     $this->used_apps= array();
+  
     foreach ($this->gosaMemberApplication as $value){
-      $this->used_apps[$value]= $this->apps[$value];
+      if(!isset($this->apps[$value])){
+        print_red(sprintf(_("The application named %s is no longer available and has been removed."),$value));
+        $test = $this->gosaMemberApplication;
+        $test = array_flip($test);
+        unset($test[$value]);
+        $this->gosaMemberApplication = array_flip($test);
+      }else{
+        $this->used_apps[$value]= $this->apps[$value];
+      }
     }
   }