diff --git a/htdocs/website/index.php b/htdocs/website/index.php index fb9f5f3c214..7d49f372c83 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -2033,7 +2033,7 @@ if ($action == "updatesecurity" && $usercanedit) { $res4 = dolibarr_set_const($db, 'WEBSITE_'.$object->id.'_SECURITY_FORCECSP', $securitysp, 'chaine', 0, '', $conf->entity); $res5 = dolibarr_set_const($db, 'WEBSITE_'.$object->id.'_SECURITY_FORCECSPRO', $securitycspro, 'chaine', 0, '', $conf->entity); - if ($res1 >= 0 && $res2 >= 0 && $res3 >= 0 && $res4 >= 0 && $res >= 0) { + if ($res1 >= 0 && $res2 >= 0 && $res3 >= 0 && $res4 >= 0 && $res5 >= 0) { $db->commit(); setEventMessages($langs->trans("Saved"), null, 'mesgs'); } else {