fix: move "$searchQuery" variable definition to be after constant check in the search page

This commit is contained in:
Dorian Niemiec 2024-12-27 16:24:10 +01:00
parent 3f0e74c96c
commit 971a377516

View file

@ -1,6 +1,6 @@
<?php
$searchQuery = isset($_GET['q']) && $_GET['q'] ? $_GET['q'] : "";
if (!defined('SVRJS_MOD_DIRECTORY')) die;
$searchQuery = isset($_GET['q']) && $_GET['q'] ? $_GET['q'] : "";
$pageTitle = $searchQuery ? "$searchQuery - Search" : "Search";
$pageDescription = "Search for SVR.JS mods";
include 'header.php';