From 714f7aa24eeaf703d5951f6d3f58897a63e9a031 Mon Sep 17 00:00:00 2001 From: zyphlar Date: Tue, 16 Jan 2018 20:28:20 -0800 Subject: [PATCH] Update time-temp.inc.php.dist --- time-temp.inc.php.dist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/time-temp.inc.php.dist b/time-temp.inc.php.dist index 7f2ffc7..d596f38 100644 --- a/time-temp.inc.php.dist +++ b/time-temp.inc.php.dist @@ -10,9 +10,9 @@ $feature = "/conditions"; // TODO: replace the 1212 number(s) with YOUR Twilio number(s) // and the appropriate cities/states for each $path . -if ($_POST['To'] == "+19995551212") { +if (array_key_exists('To', $_POST) && $_POST['To'] == "+19995551212") { $path = "/q/CA/San_Francisco.json"; -} elseif ($_POST['To'] == "+19997771212") { +} elseif (array_key_exists('To', $_POST) && $_POST['To'] == "+19997771212") { $path = "/q/HI/Honolulu.json"; } else { $path = "/q/NY/New_York.json";