commit - b679417774cb70a727e5775fe847a5958cd4eefe
commit + d1949cfedaf8865661579322296f41bf62a78fe0
blob - 921717e98f27ab41872723df9d8a5fe448bca5e3
blob + 9575ad4805a5757869e8a4b89b8a604c51b03a16
--- alexandria/search.php
+++ alexandria/search.php
$mysqli = new mysqli("localhost", $rpgc_db_username, $rpgc_db_password);
$mysqli->select_db("games") or die ("Could not select database.");
- $search = $_POST['search'];
- if (!$search) $search = $_GET['search'];
+ $search = $_POST['search'] ?? '';
+ if (!$search) $search = $_GET['search'] ?? '';
$search = mysqli_real_escape_string($mysqli, $search);
$system = $_POST['system'] ?? '';