Try to fix scrutinizer warnings
This commit is contained in:
parent
76f0df138b
commit
1be6c43ed2
@ -40,11 +40,12 @@ $backtopage = GETPOST('backtopage', 'alpha');
|
||||
* Actions
|
||||
*/
|
||||
|
||||
$reg = array();
|
||||
if (preg_match('/set_(.*)/', $action, $reg))
|
||||
{
|
||||
$code=$reg[1];
|
||||
$code = $reg[1];
|
||||
$values = GETPOST($code);
|
||||
if(is_array($values))$values = implode(',', $values);
|
||||
if (is_array($values)) $values = implode(',', $values);
|
||||
|
||||
if (dolibarr_set_const($db, $code, $values, 'chaine', 0, '', $conf->entity) > 0)
|
||||
{
|
||||
@ -59,7 +60,7 @@ if (preg_match('/set_(.*)/', $action, $reg))
|
||||
|
||||
if (preg_match('/del_(.*)/', $action, $reg))
|
||||
{
|
||||
$code=$reg[1];
|
||||
$code = $reg[1];
|
||||
if (dolibarr_del_const($db, $code, 0) > 0)
|
||||
{
|
||||
Header("Location: ".$_SERVER["PHP_SELF"]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user