[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 ) {
- [Noalyss-commit] [noalyss] branch master updated (b77ac34d8 -> 4bf2ca815), dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 07/09: Comptability PHP8.1, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 01/09: PHP8.1 deprecated,
dwm <=
- [Noalyss-commit] [noalyss] 05/09: Default currency, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 06/09: correct global g_parameter, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 02/09: compatibility PHP8.1, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 08/09: Remove dead code, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 03/09: Bug cannot update description in FOLLOW->event, dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 04/09: Merge branch 'patch-230902', dwm, 2023/09/17
- [Noalyss-commit] [noalyss] 09/09: task #2297: Suppression $_REQUEST dossier.class.php, dwm, 2023/09/17