Update time-temp.inc.php.dist

This commit is contained in:
zyphlar 2018-01-16 20:28:20 -08:00 committed by GitHub
parent 3e7259442e
commit 714f7aa24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,9 +10,9 @@ $feature = "/conditions";
// TODO: replace the 1212 number(s) with YOUR Twilio number(s) // TODO: replace the 1212 number(s) with YOUR Twilio number(s)
// and the appropriate cities/states for each $path . // 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"; $path = "/q/CA/San_Francisco.json";
} elseif ($_POST['To'] == "+19997771212") { } elseif (array_key_exists('To', $_POST) && $_POST['To'] == "+19997771212") {
$path = "/q/HI/Honolulu.json"; $path = "/q/HI/Honolulu.json";
} else { } else {
$path = "/q/NY/New_York.json"; $path = "/q/NY/New_York.json";