diff --git a/search.php b/search.php index d4aa04b..c11741e 100644 --- a/search.php +++ b/search.php @@ -7,7 +7,7 @@ if (isset($_SESSION['userid']) && ($_SESSION['username'])) { $searchtype = mysqli_real_escape_string($con, $searchtype); $searchname = (isset($_POST['searchname']) ? $_POST['searchname'] : null); $searchname = mysqli_real_escape_string($con, $searchname); - $searchcollection = (isset($_POST['collectionid']) ? $_POST['collectionid'] : $_GET[cid']); + $searchcollection = (isset($_POST['collectionid']) ? $_POST['collectionid'] : $_GET['cid']); $searchcollection = mysqli_real_escape_string($con, $searchcollection); if (!empty($searchname) || !empty($searchcollection)) { if ($searchtype == "name") {