diff --git a/plugins/admin/systems/class_glpiAttachmentPool.inc b/plugins/admin/systems/class_glpiAttachmentPool.inc
index 0d1ae07ff97a01880517908c81bf59d62d6ca887..b500660298b80ad14dd2502dd6a4c055b6624e63 100644 (file)
var $delAttach= "";
- function glpiAttachmentPool ($config, $dn= NULL,$used=NULL)
+ function glpiAttachmentPool (&$config, $dn= NULL,$used=NULL)
{
plugin::plugin ($config, $dn);
if(!isset($_SESSION['GlpiAttachmentFilter'])){
}
/* Assign used attributes */
- if($used != NULL){
+ if($used !== NULL){
$this->Selected = $used;
}
}
}
} // 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
/* 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")),