X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_rallye_prices.php;h=40a5cf88d3f31df5dc03586e2d523bb9a87523f9;hb=c1671a3b6c02326b471916a28f4177c453871f51;hp=f21bad00b33d7e39aa4dc7eef2c6c3fbc043c6e0;hpb=de4eca961c19b854995faa65c4569b22ba26cef9;p=mailer.git diff --git a/inc/modules/admin/what-config_rallye_prices.php b/inc/modules/admin/what-config_rallye_prices.php index f21bad00b3..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", @@ -97,8 +96,8 @@ VALUES ('%s','%s','%s','%s')", `{?_MYSQL_PREFIX?}_rallye_prices` SET `rallye_id`=%s, - `price_`level``='%s', - `points`='%s', + `price_level`=%d, + `points`=%s, `info`='%s' WHERE `id`=%s @@ -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) {