Avoid warning

This commit is contained in:
Laurent Destailleur 2017-05-18 13:14:56 +02:00
parent dff7d00d2b
commit 5a79d11389

View File

@ -330,7 +330,7 @@ function GETPOST($paramname, $check='', $method=0, $filter=NULL, $options=NULL)
} }
} }
if (empty($check) && $conf->global->MAIN_FEATURES_LEVEL >= 2) if (empty($check) && ! empty($conf->global->MAIN_FEATURES_LEVEL) && $conf->global->MAIN_FEATURES_LEVEL >= 2)
{ {
dol_syslog("Deprecated use of GETPOST, called with 1st param = ".$paramname." and 2nd param not defined, when calling page ".$_SERVER["PHP_SELF"], LOG_WARNING); dol_syslog("Deprecated use of GETPOST, called with 1st param = ".$paramname." and 2nd param not defined, when calling page ".$_SERVER["PHP_SELF"], LOG_WARNING);
} }