Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-10-02 01:14:43 +02:00
parent ce1c5c6873
commit 813deee4a5
3 changed files with 6 additions and 10 deletions

View File

@ -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';

View File

@ -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;

View File

@ -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;