From 5a79d11389e16c1261bfe4243beb09f18af1c949 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 May 2017 13:14:56 +0200 Subject: [PATCH] Avoid warning --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index dd856c151b6..c9ec77c76de 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -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); }