X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_rallye_prices.php;h=40a5cf88d3f31df5dc03586e2d523bb9a87523f9;hb=c1671a3b6c02326b471916a28f4177c453871f51;hp=63030d31811b9510976cf93098aec98ad6261917;hpb=59c0f4c8261e2ea381d0749fa45253f6d34dc845;p=mailer.git diff --git a/inc/modules/admin/what-config_rallye_prices.php b/inc/modules/admin/what-config_rallye_prices.php index 63030d3181..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) {