X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_rallye_prices.php;h=d2d36055e7ff346c00c9473bda1b28554e68dd42;hb=e1235e719b767d6693976c3d24489beaa38a3667;hp=3245fb300025a35d0ed0ac50e286fc796f6c1460;hpb=d495bd859975d08ee459d03c9b1cd51dd9b9304d;p=mailer.git
diff --git a/inc/modules/admin/what-config_rallye_prices.php b/inc/modules/admin/what-config_rallye_prices.php
index 3245fb3000..d2d36055e7 100644
--- a/inc/modules/admin/what-config_rallye_prices.php
+++ b/inc/modules/admin/what-config_rallye_prices.php
@@ -1,7 +1,7 @@
0) {
+ if (countPostSelection() > 0) {
// Delete selected entries
foreach (postRequestElement('sel') as $id => $sel) {
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
@@ -118,8 +117,7 @@ LIMIT 1",
if (isPostRequestElementSet('edit')) {
// Check if at last one line is selected
- $SEL = countPostSelection();
- if ($SEL > 0) {
+ if (countPostSelection() > 0) {
// Make selected editable
$OUT = ''; $SW = 2;
foreach (postRequestElement('sel') as $id => $sel) {
@@ -152,13 +150,12 @@ LIMIT 1",
loadTemplate('admin_config_rallye_edit', false, $content);
} else {
// Nothing selected
- $content = sprintf(getMessage('RALLYE_NO_PRICES_SELECTED'), "", "");
+ $content = sprintf(getMessage('RALLYE_NO_PRICES_SELECTED'), "", "");
loadTemplate('admin_settings_saved', false, $content);
}
} elseif (isPostRequestElementSet('del')) {
// Check if at last one line is selected
- $SEL = countPostSelection();
- if ($SEL > 0) {
+ if (countPostSelection() > 0) {
// List all prices
$OUT = ''; $SW = 2;
foreach (postRequestElement('sel') as $id => $sel) {
@@ -192,7 +189,7 @@ LIMIT 1",
loadTemplate('admin_config_rallye_del', false, $content);
} else {
// Nothing selected
- $content = "{--RALLYE_NO_PRICES_SELECTED_1--}{--RALLYE_NO_PRICES_SELECTED_2--}{--RALLYE_NO_PRICES_SELECTED_3--}";
+ $content = "{--RALLYE_NO_PRICES_SELECTED_1--}{--RALLYE_NO_PRICES_SELECTED_2--}{--RALLYE_NO_PRICES_SELECTED_3--}";
loadTemplate('admin_settings_saved', false, $content);
}
} else {