Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 13, 2021
1 parent 67e00e5 commit 6f97a55
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions htdocs/public/project/suggestbooth.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
$cactioncomm = new CActionComm($db);
$arrayofeventtype = $cactioncomm->liste_array('', 'id', '', 0, 'module=\'booth@eventorganization\'');


/**
* Show header for new member
*
Expand Down Expand Up @@ -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');
}
Expand Down
5 changes: 3 additions & 2 deletions htdocs/public/project/suggestconference.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
$cactioncomm = new CActionComm($db);
$arrayofeventtype = $cactioncomm->liste_array('', 'id', '', 0, 'module=\'conference@eventorganization\'');


/**
* Show header for new member
*
Expand Down Expand Up @@ -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');
}
Expand Down
2 changes: 2 additions & 0 deletions htdocs/public/project/viewandvote.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@
$errmsg .= $project->error;
}


/*
* Actions
*/

$tmpthirdparty = new Societe($db);

$listOfConferences = $listOfBooths = '<tr><td>'.$langs->trans('Label').'</td>
Expand Down

0 comments on commit 6f97a55

Please sign in to comment.