]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_payouts.php
More use of EL, fix for admin links
[mailer.git] / inc / modules / admin / what-config_payouts.php
index f9a6ed4a5cf7a91784c397cfde7f252fb3e66196..b3ce3c631e1e76fcaeaf1ec335add52c13ac827e 100644 (file)
@@ -99,16 +99,19 @@ if ((isFormSent('edit')) && (countPostSelection() > 0)) {
                        if ((isPostRequestParameterSet('title', $id)) && (postRequestParameter('rate', $id) > 0)) {
                                // Update entry
                                addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_payout_types` SET
-type='%s',
-rate=%s,
-min_points=%s,
-allow_url='%s'
-WHERE `id`='".$id."' LIMIT 1",
+       type='%s',
+       rate=%s,
+       min_points=%s,
+       allow_url='%s'
+WHERE
+       `id`=%s
+LIMIT 1",
                                array(
                                        postRequestParameter('title', $id),
                                        convertCommaToDot(postRequestParameter('rate', $id)),
                                        convertCommaToDot(postRequestParameter('min_points' , $id)),
                                        postRequestParameter('allow', $id),
+                                       bigintval($id)
                                ),__FILE__, __LINE__, false));
                        }
                }
@@ -135,7 +138,7 @@ WHERE `id`='".$id."' LIMIT 1",
                                'title' => $title,
                                'rate'  => translateComma($rate),
                                'min_points'  => translateComma($min_points),
-                               'allow' => addSelectionBox('yn', $allow, "allow[".$id."]"),
+                               'allow' => addSelectionBox('yn', $allow, 'allow[' . $id . ']'),
                        );
 
                        // Load row template and switch color