Fix var init

This commit is contained in:
Laurent Destailleur 2021-03-24 21:23:37 +01:00
parent a5034d44f7
commit b3c15089f0

View File

@ -42,6 +42,7 @@ $action = GETPOST('action', 'aZ09');
* Action
*/
$reg = array();
if (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) {
$code = $reg[1];
if (dolibarr_set_const($db, $code, 1, 'yesno', 0, '', $conf->entity) > 0) {