noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/09: PHP8.1 deprecated


From: dwm
Subject: [Noalyss-commit] [noalyss] 01/09: PHP8.1 deprecated
Date: Sun, 17 Sep 2023 15:06:10 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 991a499dd6c29c8f4d728c6676912589f8fc00c3
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed Aug 30 10:02:18 2023 +0200

    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 "<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 ) {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]