X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_rallye_prices.php;h=40a5cf88d3f31df5dc03586e2d523bb9a87523f9;hb=3c0c6ad28a250c08b3fe8b166c589d0d49441ad3;hp=3245fb300025a35d0ed0ac50e286fc796f6c1460;hpb=9afd6ec5878544a7982c50ed9c0dd7de37606d5b;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..40a5cf88d3 100644 --- a/inc/modules/admin/what-config_rallye_prices.php +++ b/inc/modules/admin/what-config_rallye_prices.php @@ -1,6 +1,6 @@ 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) { @@ -157,8 +155,7 @@ LIMIT 1", } } 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) {