Fix phpcs
This commit is contained in:
parent
ce1c5c6873
commit
813deee4a5
@ -22,7 +22,7 @@
|
||||
* \brief Setup page to configure journals
|
||||
*/
|
||||
|
||||
if (! defined('CSRFCHECK_WITH_TOKEN')) define('CSRFCHECK_WITH_TOKEN','1'); // Force use of CSRF protection with tokens even for GET
|
||||
if (!defined('CSRFCHECK_WITH_TOKEN')) define('CSRFCHECK_WITH_TOKEN','1'); // Force use of CSRF protection with tokens even for GET
|
||||
|
||||
require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
||||
|
||||
@ -1709,8 +1709,8 @@ if ($id > 0)
|
||||
// Reminders
|
||||
if ($conf->global->AGENDA_REMINDER_EMAIL || $conf->global->AGENDA_REMINDER_BROWSER)
|
||||
{
|
||||
$filtreuserid = $user->id;
|
||||
if ($user->rights->agenda->allactions->read) $filtreuserid = 0;
|
||||
$filteruserid = $user->id;
|
||||
if ($user->rights->agenda->allactions->read) $filteruserid = 0;
|
||||
$object->loadReminders('', $filteruserid, false);
|
||||
|
||||
print '<hr>';
|
||||
@ -1721,10 +1721,7 @@ if ($id > 0)
|
||||
$firstreminderId = array_shift($keys);
|
||||
|
||||
$actionCommReminder = $object->reminders[$firstreminderId];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$checked = '';
|
||||
$actionCommReminder = new ActionCommReminder($db);
|
||||
$actionCommReminder->offsetvalue = 10;
|
||||
|
||||
@ -59,12 +59,11 @@ function payment_prepare_head(Paiement $object)
|
||||
* Returns an array with the tabs for the "Bannkline" section
|
||||
* It loads tabs from modules looking for the entity payment
|
||||
*
|
||||
* @param Bankline $object Current payment object
|
||||
* @return array Tabs for the Bankline section
|
||||
* @param int $id ID of bank line
|
||||
* @return array Tabs for the Bankline section
|
||||
*/
|
||||
function bankline_prepare_head($id)
|
||||
{
|
||||
|
||||
global $langs, $conf;
|
||||
|
||||
$h = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user