Fix phpcs

This commit is contained in:
Laurent Destailleur 2021-03-12 20:12:27 +01:00
parent af5db0f5fa
commit d390464c12

View File

@ -74,9 +74,9 @@ class InterfaceEventOrganization extends DolibarrTriggers
if (empty($conf->eventorganization->enabled)) {
return 0; // Module not active, we do nothing
}
$error=0;
// Actions
if ($action == 'PROJECT_VALIDATE') {
if (!empty($conf->global->EVENTORGANIZATION_TASK_LABEL) && !empty($object->usage_organize_event)) {
@ -84,7 +84,7 @@ class InterfaceEventOrganization extends DolibarrTriggers
if (is_array($taskToDo) && count($taskToDo)>0) {
// Load translation files required by the page
$langs->loadLangs(array("eventorganization"));
$this->db->begin();
foreach ($taskToDo as $taskLabel) {
$task = new Task($this->db);