Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_glpiAttachmentPool.inc
index 0d1ae07ff97a01880517908c81bf59d62d6ca887..b500660298b80ad14dd2502dd6a4c055b6624e63 100644 (file)
@@ -25,7 +25,7 @@ class glpiAttachmentPool extends plugin
 
   var $delAttach= "";
 
-  function glpiAttachmentPool ($config, $dn= NULL,$used=NULL)
+  function glpiAttachmentPool (&$config, $dn= NULL,$used=NULL)
   {
     plugin::plugin ($config, $dn);
     if(!isset($_SESSION['GlpiAttachmentFilter'])){
@@ -33,7 +33,7 @@ class glpiAttachmentPool extends plugin
     }
 
     /* Assign used attributes */
-    if($used != NULL){
+    if($used !== NULL){
       $this->Selected = $used;
     }
   }
@@ -149,7 +149,7 @@ class glpiAttachmentPool extends plugin
                 }
               } // File already exists
             }
-          } // Check if any error occured
+          } // Check if any error occurred
         } // check if valid filename was uploaded
       } // ende check if file was uploaded 
     }// upload post
@@ -196,6 +196,7 @@ class glpiAttachmentPool extends plugin
 
     /* Create list with checkboxes to select / deselect some attachents */
     $divlist = new divlist("Attachment");  
+    $divlist->SetPluginMode();
     $divlist->SetHeader(array(
           array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
           array("string" => _("Name")),