From 6aaf1c2962a0492be20e763b8c0d3e77d5c6b586 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Fri, 26 Feb 2021 17:28:25 +0000 Subject: [PATCH] Fixing style errors. --- .../modulebuilder/template/class/actions_mymodule.class.php | 2 +- htdocs/mrp/mo_list.php | 2 +- htdocs/opensurvey/results.php | 4 ++-- htdocs/opensurvey/wizard/create_survey.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/modulebuilder/template/class/actions_mymodule.class.php b/htdocs/modulebuilder/template/class/actions_mymodule.class.php index f29f6eeb45a..8559411a3d4 100644 --- a/htdocs/modulebuilder/template/class/actions_mymodule.class.php +++ b/htdocs/modulebuilder/template/class/actions_mymodule.class.php @@ -100,7 +100,7 @@ class ActionsMyModule /* print_r($parameters); print_r($object); echo "action: " . $action; */ if (in_array($parameters['currentcontext'], array('somecontext1', 'somecontext2'))) { // do something only for the context 'somecontext1' or 'somecontext2' - // Do what you want here... + // Do what you want here... // You can for example call global vars like $fieldstosearchall to overwrite them, or update database depending on $action and $_POST values. } diff --git a/htdocs/mrp/mo_list.php b/htdocs/mrp/mo_list.php index 972fb2cb770..ed78c46f133 100644 --- a/htdocs/mrp/mo_list.php +++ b/htdocs/mrp/mo_list.php @@ -88,7 +88,7 @@ if (empty($conf->mrp->enabled)) { } $socid = 0; if ($user->socid > 0) { // Protection if external user -//$socid = $user->socid; + //$socid = $user->socid; accessforbidden(); } //$result = restrictedArea($user, 'mrp', $id, ''); diff --git a/htdocs/opensurvey/results.php b/htdocs/opensurvey/results.php index cea5cdbcbee..36228939092 100644 --- a/htdocs/opensurvey/results.php +++ b/htdocs/opensurvey/results.php @@ -264,7 +264,7 @@ if (isset($_POST["ajoutercolonne"]) && $object->format == "D") { // Delete line for ($i = 0; $i < $nblines; $i++) { if (GETPOST("effaceligne".$i) || GETPOST("effaceligne".$i."_x") || GETPOST("effaceligne".$i.".x")) { // effacelignei for chrome, effacelignei_x for firefox - // Security check + // Security check if (!$user->rights->opensurvey->write) { accessforbidden(); } @@ -299,7 +299,7 @@ for ($i = 0; $i < $nblines; $i++) { for ($i = 0; $i < $nbcolonnes; $i++) { if ((GETPOST("effacecolonne".$i) || GETPOST("effacecolonne".$i."_x") || GETPOST("effacecolonne".$i.".x")) && $nbcolonnes > 1) { // effacecolonnei for chrome, effacecolonnei_x for firefox - // Security check + // Security check if (!$user->rights->opensurvey->write) { accessforbidden(); } diff --git a/htdocs/opensurvey/wizard/create_survey.php b/htdocs/opensurvey/wizard/create_survey.php index 9bf371be2f4..30e662be7ea 100644 --- a/htdocs/opensurvey/wizard/create_survey.php +++ b/htdocs/opensurvey/wizard/create_survey.php @@ -82,7 +82,7 @@ if (!empty($creation_sondage_date) || !empty($creation_sondage_autre)) { $champdatefin = dol_mktime(0, 0, 0, GETPOST('champdatefinmonth'), GETPOST('champdatefinday'), GETPOST('champdatefinyear')); if ($champdatefin && ($champdatefin > 0)) { // A date was provided - // Expire date is not before today + // Expire date is not before today if ($champdatefin >= dol_now()) { $testdate = true; $_SESSION['champdatefin'] = dol_print_date($champdatefin, 'dayrfc');