X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-payments.php;h=0b2c08ff71482498812ecb34444dbfb04392aae5;hp=adbc2e95ab3d57e8dd4f21b0a41049ecb7703905;hb=c78089215285d52d483760699d07a96dfbbe0671;hpb=e72031bcfdcd8e91f62bec6cc88f36b7a11d9221 diff --git a/inc/modules/admin/what-payments.php b/inc/modules/admin/what-payments.php index adbc2e95ab..0b2c08ff71 100644 --- a/inc/modules/admin/what-payments.php +++ b/inc/modules/admin/what-payments.php @@ -45,7 +45,6 @@ if (((!REQUEST_ISSET_POST(('t_wait'))) || (!REQUEST_ISSET_POST(('payment')))) && } if (IS_FORM_SENT()) { - $SQL = array(); switch (REQUEST_GET('do')) { case "add": ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_payments` (time, payment, mail_title, price) VALUES ('".REQUEST_POST('t_wait')."','".REQUEST_POST('payment')."','".REQUEST_POST('title')."','".REQUEST_POST('price')."')"); @@ -76,7 +75,7 @@ if (IS_FORM_SENT()) { // Save settings if (COUNT_SQLS() > 0) { // Run all queries - RUN_FILTER('run_sqls', array('dry_run' => false)); + runFilterChain('run_sqls'); $content = "".SETTINGS_SAVED.""; } else { // Nothing has changed! @@ -85,7 +84,7 @@ if (IS_FORM_SENT()) { // Output template LOAD_TEMPLATE("admin_settings_saved", false, $content); -} elseif ((REQUEST_ISSET_POST(('del'))) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) { +} elseif ((REQUEST_ISSET_POST('del')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) { // Delete entries here $SW = 2; $OUT = ""; foreach (REQUEST_POST('sel') as $id => $value) { @@ -110,7 +109,7 @@ if (IS_FORM_SENT()) { // Load main template LOAD_TEMPLATE("admin_del_payments"); -} elseif ((REQUEST_ISSET_POST(('edit'))) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) { +} elseif ((REQUEST_ISSET_POST('edit')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) { // Edit entries $SW = 2; $OUT = ""; foreach (REQUEST_POST('sel') as $id => $value) {