diff --git a/include/signup.inc.php b/include/signup.inc.php index 806ef2e..2984b40 100644 --- a/include/signup.inc.php +++ b/include/signup.inc.php @@ -42,7 +42,7 @@ exit(); } - if (getHospitalById($conn, $hosp_id) !== true) { + if (getHospitalById($conn, $hosp_id) === false) { header("location: ../pages/signup.php?error=noHospIdExists"); exit(); }