diff --git a/html/autocomplete.php b/html/autocomplete.php index 0f902f0aa47f136dac50bd2d9947ae6bcc698f75..d5da39a6f1c17740ce013c0ebfaef4c6e79c0840 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; }