--- a/rtpis/servicealert_editor.php +++ b/rtpis/servicealert_editor.php @@ -35,18 +35,18 @@ echo "Saved " . $_REQUEST['saveedit']; die(); } -if ($_REQUEST['delete']) { +if (isset($_REQUEST['delete'])) { $deleteParts = explode(";", $_REQUEST['delete']); deleteInformedAlert($deleteParts[0], $deleteParts[1], $deleteParts[2]); echo "Deleted network inform for {$deleteParts[0]} ({$deleteParts[1]},{$deleteParts[2]})
\n"; die(); } -if ($_REQUEST['networkinform']) { +if (isset($_REQUEST['networkinform'])) { addInformedAlert($_REQUEST['networkinform'], "agency", "0", "inform"); echo "Added network inform for" . $_REQUEST['networkinform']; die(); } -if ($_REQUEST['stopsearch']) { +if (isset($_REQUEST['stopsearch'])) { addInformedAlert($_REQUEST['stopsearch'], "stop", $_REQUEST['stopid'], "remove"); echo "Added stop remove for" . $_REQUEST['stopsearch'] . ", stop" . $_REQUEST['stopid'] . "
\n"; @@ -59,7 +59,7 @@ } die(); } -if ($_REQUEST['streetsearch']) { +if (isset($_REQUEST['streetsearch'])) { echo "Informing stops of street
\n"; foreach (getStopsByName($_REQUEST['street']) as $stop) { @@ -87,7 +87,7 @@ ?>
@@ -95,19 +95,21 @@
" />
" />
@@ -141,12 +143,12 @@ } ?>
- +
'; foreach (getInformedAlerts($_REQUEST['edit'], "", "") as $informed) {