From c367c1009b5a7309c1aad8e3ea483320e4f57dba Mon Sep 17 00:00:00 2001 From: lvessiller Date: Tue, 31 Aug 2021 18:34:26 +0200 Subject: [PATCH] FIX stickler-ci --- htdocs/admin/agenda_extsites.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/admin/agenda_extsites.php b/htdocs/admin/agenda_extsites.php index eb5cc45b78f..6cb1f766ef6 100644 --- a/htdocs/admin/agenda_extsites.php +++ b/htdocs/admin/agenda_extsites.php @@ -59,7 +59,7 @@ $colorlist = array('BECEDD', 'DDBECE', 'BFDDBE', 'F598B4', 'F68654', 'CBF654', ' $error = 0; $errors = array(); -if (preg_match('/set_(.*)/', $action,$reg)) { +if (preg_match('/set_(.*)/', $action, $reg)) { $db->begin(); $code = $reg[1]; @@ -80,7 +80,7 @@ if (preg_match('/set_(.*)/', $action,$reg)) { header('Location: ' . $_SERVER["PHP_SELF"]); exit(); } -} elseif (preg_match('/del_(.*)/', $action,$reg)) { +} elseif (preg_match('/del_(.*)/', $action, $reg)) { $db->begin(); $code = $reg[1]; @@ -260,7 +260,7 @@ while ($i <= $MAXAGENDA) { $offsettz = 'AGENDA_EXT_OFFSETTZ'.$key; $color = 'AGENDA_EXT_COLOR'.$key; $enabled = 'AGENDA_EXT_ENABLED'.$key; - $default = 'AGENDA_EXT_ACTIVEBYDEFAULT'.$key; + $default = 'AGENDA_EXT_ACTIVEBYDEFAULT'.$key; print ''; // Nb @@ -279,12 +279,12 @@ while ($i <= $MAXAGENDA) { // Calendar active by default print ''; if ($conf->use_javascript_ajax) { - print ajax_constantonoff('AGENDA_EXT_ACTIVEBYDEFAULT'.$key); + print ajax_constantonoff('AGENDA_EXT_ACTIVEBYDEFAULT' . $key); } else { if (empty($conf->global->{$default})) { - print ''.img_picto($langs->trans("Enabled"), 'on').''; + print '' . img_picto($langs->trans("Enabled"), 'on') . ''; } else { - print ''.img_picto($langs->trans("Disabled"), 'off').''; + print '' . img_picto($langs->trans("Disabled"), 'off') . ''; } } print '';