function post_addItem() { global $CFG_GLPI; $donotif = $CFG_GLPI["use_mailing"]; if ($donotif) { $problem = new Problem(); if ($problem->getFromDB($this->input["problems_id"])) { $options = array(); NotificationEvent::raiseEvent("new", $problem, $options); } } parent::post_addItem(); }