From 73e7b7fb0688b0adccf6375e4ebadd51586540cf Mon Sep 17 00:00:00 2001 From: Thibault Dockx <thibault.dockx@fusiondirectory.org> Date: Tue, 25 Feb 2025 13:47:46 +0000 Subject: [PATCH] :sparkles: Feat(ihtml) - adapts to php 82 Adapt ihtml classes to php 82 --- html/autocomplete.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/autocomplete.php b/html/autocomplete.php index 0f902f0aa..d5da39a6f 100755 --- a/html/autocomplete.php +++ b/html/autocomplete.php @@ -50,15 +50,15 @@ if (isset($_GET['type']) && $_GET['type'] == "base") { if (!isset($pathMapping[$dn])) { continue; } - if (mb_stristr((string) $info['name'], $search) !== FALSE) { + if (mb_stristr((string) $info['name'], (string) $search) !== FALSE) { $res .= "<li>".mark($search, $pathMapping[$dn]).($info['description'] == '' ? "" : "<span class='informal'> [".mark($search, $info['description'])."]</span>")."</li>"; continue; } - if (mb_stristr((string) $info['description'], $search) !== FALSE) { + if (mb_stristr((string) $info['description'], (string) $search) !== FALSE) { $res .= "<li>".mark($search, $pathMapping[$dn]).($info['description'] == '' ? "" : "<span class='informal'> [".mark($search, $info['description'])."]</span>")."</li>"; continue; } - if (mb_stristr($pathMapping[$dn], $search) !== FALSE) { + if (mb_stristr($pathMapping[$dn], (string) $search) !== FALSE) { $res .= "<li>".mark($search, $pathMapping[$dn]).($info['description'] == '' ? "" : "<span class='informal'> [".mark($search, $info['description'])."]</span>")."</li>"; continue; } -- GitLab