From 991a499dd6c29c8f4d728c6676912589f8fc00c3 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 30 Aug 2023 10:02:18 +0200 Subject: [PATCH] PHP8.1 deprecated --- html/direct.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/html/direct.php b/html/direct.php index 1f10466a4..7c1a4b2c6 100644 --- a/html/direct.php +++ b/html/direct.php @@ -29,10 +29,11 @@ MaintenanceMode("block.html"); $cn=Dossier::connect(); global $g_user; +$http=new \HttpInput(); $g_user=new Noalyss_user($cn); $g_user->Check(); -$g_user->check_dossier($_GET['gDossier']); -$res=$cn->exec_sql("select distinct code,description from get_profile_menu($1) where code ~* $2 or description ~* $3 order by code limit 5 ",array($g_user->get_profile(),$_POST['acs'],$_POST['acs'])); +$g_user->check_dossier($http->get('gDossier')); +$res=$cn->exec_sql("select distinct code,description from get_profile_menu($1) where code ~* $2 or description ~* $2 order by code limit 5 ",array($g_user->get_profile(),$http->post("acs"))); $nb=Database::num_row($res); echo ""; if ( $nb == 0 ) {