// By default show the list...
$show = true;
+// Check for 'id' element
+if ((count($_POST) > 0) && ((!isset($_POST['id'])) || (!is_array($_POST['id'])) || (count($_POST['id']) == 0))) {
+ // Not found so output message
+ LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SURFBAR_NO_SELECTIONS);
+
+ // Abort here
+ return;
+}
+
// Edit or delete button hit?
if (isset($_POST['edit'])) {
// Show entries for editing
ADMIN_EDIT_ENTRIES_CONFIRM(
$_POST['id'],
"surfbar_urls",
- array("id", "userid", "url", "reward", "costs"),
- array("bigintval", "ADD_MEMBER_SELECTION_BOX", "", "TRANSLATE_COMMA", "TRANSLATE_COMMA"),
- array("", array(false, true, true), "", "", "")
+ array("id", "userid", "url"),
+ array("bigintval", "ADD_MEMBER_SELECTION_BOX", ""),
+ array("", array(false, true, true), "")
);
$show = false;
} elseif (isset($_POST['do_edit'])) {