mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
fix compatibility with php8
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ $searchstr = mysql_real_escape_string(trim($_GET["search"]));
|
||||
if (empty($searchstr))
|
||||
unset($searchstr);
|
||||
if (isset($searchstr)){
|
||||
$search_mode = 0 + $_GET["search_mode"];
|
||||
$search_mode = $_GET["search_mode"] ?? 0;
|
||||
if (!in_array($search_mode,array(0,1,2)))
|
||||
{
|
||||
$search_mode = 0;
|
||||
|
||||
Reference in New Issue
Block a user