Fix phpcs

This commit is contained in:
Laurent Destailleur 2019-06-12 13:58:48 +02:00
parent 44f383c8b9
commit bf6f9dd7ea

View File

@ -46,7 +46,7 @@ $action = GETPOST('action', 'alpha');
*/ */
if (preg_match('/set_([a-z0-9_\-]+)/i',$action,$reg)) if (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg))
{ {
$code=$reg[1]; $code=$reg[1];
$value=GETPOST($code, 'alpha'); $value=GETPOST($code, 'alpha');
@ -60,7 +60,7 @@ if (preg_match('/set_([a-z0-9_\-]+)/i',$action,$reg))
} }
} }
if (preg_match('/del_([a-z0-9_\-]+)/i',$action,$reg)) if (preg_match('/del_([a-z0-9_\-]+)/i', $action, $reg))
{ {
$code=$reg[1]; $code=$reg[1];
if (dolibarr_del_const($db, $code, 0) > 0) if (dolibarr_del_const($db, $code, 0) > 0)