X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-payments.php;h=8de522a367b76e695a5a096bbb7edf2b858bfd7b;hb=995488beda665a1fc3de65df95f2d1ae236d1245;hp=3424bf9a0a38fd66aefb9ff8916948a705422b98;hpb=57227d33e870ec5cd271209c4a978a52b45c2dd6;p=mailer.git
diff --git a/inc/modules/admin/what-payments.php b/inc/modules/admin/what-payments.php
index 3424bf9a0a..8de522a367 100644
--- a/inc/modules/admin/what-payments.php
+++ b/inc/modules/admin/what-payments.php
@@ -18,6 +18,7 @@
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -65,13 +66,13 @@ if (isFormSent()) {
case 'edit':
foreach (postRequestParameter('time') as $id => $value) {
- addSql("UPDATE `{?_MYSQL_PREFIX?}_payments` SET time='".$value."', payment='".postRequestParameter('pay', $id)."', price='".postRequestParameter('price', $id)."', mail_title='".postRequestParameter('title', $id)."' WHERE `id`='".$id."' LIMIT 1");
+ addSql("UPDATE `{?_MYSQL_PREFIX?}_payments` SET `time`='" . $value . "', `payment`='".postRequestParameter('pay', $id)."', price='".postRequestParameter('price', $id)."', mail_title='".postRequestParameter('title', $id)."' WHERE `id`='".$id."' LIMIT 1");
}
break;
case 'del':
foreach (postRequestParameter('id') as $id => $value) {
- addSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`='".$id."' LIMIT 1");
+ addSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=" . bigintval($id) . " LIMIT 1");
}
break;
} // END - switch
@@ -80,15 +81,15 @@ if (isFormSent()) {
if (countSqls() > 0) {
// Run all queries
runFilterChain('run_sqls');
- $content = "{--SETTINGS_SAVED--}";
+ $content = '{--SETTINGS_SAVED--}';
} else {
// Nothing has changed!
- $content = "{--SETTINGS_NOT_SAVED--}";
+ $content = '{--SETTINGS_NOT_SAVED--}';
}
// Output template
loadTemplate('admin_settings_saved', false, $content);
-} elseif ((isPostRequestParameterSet('del')) && (countPostSelection() > 0)) {
+} elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
// Delete entries here
$OUT = ''; $SW = 2;
foreach (postRequestParameter('sel') as $id => $value) {
@@ -112,7 +113,7 @@ if (isFormSent()) {
// Load main template
loadTemplate('admin_del_payments', false, $OUT);
-} elseif ((isPostRequestParameterSet('edit')) && (countPostSelection() > 0)) {
+} elseif ((isFormSent('edit')) && (countPostSelection() > 0)) {
// Edit entries
$OUT = ''; $SW = 2;
foreach (postRequestParameter('sel') as $id => $value) {