From fd8ed70359632533cbe2b10ab00d59260bbc6217 Mon Sep 17 00:00:00 2001 From: khuxkm Date: Tue, 26 Jun 2018 23:21:37 -0400 Subject: [PATCH] Fix warning about non-numeric values --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index eaac989..a3ad7ce 100644 --- a/index.php +++ b/index.php @@ -27,7 +27,7 @@ $arc_san = htmlspecialchars($_GET["arc"]??''); $bump_san = htmlspecialchars($_GET["bump"]??''); - $bumpn = get_bump_number($arc_san,$bump_san); + $bumpn = (haveLocation()==2) ? get_bump_number($arc_san,$bump_san) : 'invalid'; $arc_names = array("1"=>"LIL_HEAD","2"=>"Find Amelia","3"=>"Experiment G-15.2"); $arc_name = $arc_names[$arc_san] ?? "Invalid";