PHP8.1 deprecated

This commit is contained in:
sparkyx 2023-08-30 10:02:18 +02:00
parent b77ac34d83
commit 991a499dd6

View file

@ -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 "<ul>";
set_language();
@ -41,7 +42,7 @@ for ($i = 0;$i< $nb;$i++)
$row=Database::fetch_array($res,$i);
echo "<li>";
echo $row['code'];
echo '<span class="informal"> '._($row['description']).'</span></li>';
echo '<span class="informal"> '._($row['description']??"").'</span></li>';
}
echo "</ul>";
if ( $nb == 0 ) {