diff --git a/htdocs/blockedlog/admin/blockedlog.php b/htdocs/blockedlog/admin/blockedlog.php index 399ace64ad9..8d4fe48a20f 100644 --- a/htdocs/blockedlog/admin/blockedlog.php +++ b/htdocs/blockedlog/admin/blockedlog.php @@ -34,6 +34,7 @@ if (! $user->admin) accessforbidden(); $action = GETPOST('action','alpha'); + /* * Actions */ @@ -43,7 +44,7 @@ if (preg_match('/set_(.*)/',$action,$reg)) $code=$reg[1]; $values = GETPOST($code); if(is_array($values))$values = implode(',', $values); - + if (dolibarr_set_const($db, $code, $values, 'chaine', 0, '', $conf->entity) > 0) { header("Location: ".$_SERVER["PHP_SELF"]); @@ -118,10 +119,9 @@ if (!empty($conf->global->BLOCKEDLOG_USE_REMOTE_AUTHORITY)) { print ''; } -$var=!$var; -print '