Clean code

This commit is contained in:
Laurent Destailleur 2021-06-13 20:32:11 +02:00
parent 67e00e5cf5
commit 6f97a551ef
3 changed files with 8 additions and 4 deletions

View File

@ -115,6 +115,7 @@ $user->loadDefaultValues();
$cactioncomm = new CActionComm($db);
$arrayofeventtype = $cactioncomm->liste_array('', 'id', '', 0, 'module=\'booth@eventorganization\'');
/**
* Show header for new member
*
@ -183,10 +184,10 @@ function llxFooterVierge()
/*
* Actions
*/
global $mysoc;
$parameters = array();
// Note that $action and $object may have been modified by some hooks
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action);
$reshook = $hookmanager->executeHooks('doActions', $parameters, $project, $action);
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
}

View File

@ -115,6 +115,7 @@ $user->loadDefaultValues();
$cactioncomm = new CActionComm($db);
$arrayofeventtype = $cactioncomm->liste_array('', 'id', '', 0, 'module=\'conference@eventorganization\'');
/**
* Show header for new member
*
@ -183,10 +184,10 @@ function llxFooterVierge()
/*
* Actions
*/
global $mysoc;
$parameters = array();
// Note that $action and $object may have been modified by some hooks
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action);
$reshook = $hookmanager->executeHooks('doActions', $parameters, $project, $action);
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
}

View File

@ -89,9 +89,11 @@ if ($resultproject < 0) {
$errmsg .= $project->error;
}
/*
* Actions
*/
$tmpthirdparty = new Societe($db);
$listOfConferences = $listOfBooths = '<tr><td>'.$langs->trans('Label').'</td>