Fix in CREATE_EXTENSION_DEACTIVATION_TASK() and coding-style updated
[mailer.git] / inc / modules / admin / what-config_payouts.php
index da87317ea191ff5021bf0fde925ec67a27897a72..98ca6cb4e367d9fcd5e13d9dde71facce052694a 100644 (file)
@@ -50,7 +50,7 @@ if ((isset($_POST['add'])) && (!empty($_POST['title'])) && ($_POST['rate'] > 0))
        if (SQL_NUMROWS($result) == 0)
        {
                // Add now
-               $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_payout_types
+               SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_payout_types
 (type, rate, min_points, from_account, from_pass, engine_url, engine_ret_ok, engine_ret_failed, pass_enc, allow_url)
 VALUES ('%s', %d, %d,'%s','%s','%s','%s','%s','%s','%s')",
  array(
@@ -96,7 +96,7 @@ if ((isset($_POST['edit'])) && (SELECTION_COUNT($_POST['sel']) > 0))
                        if ((!empty($_POST['title'][$id])) && ($_POST['rate'][$id] > 0))
                        {
                                // Update entry
-                               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_payout_types SET
+                               SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_payout_types SET
 type='%s',
 rate=%s,
 min_points=%s,
@@ -152,8 +152,8 @@ WHERE id='".$id."' LIMIT 1",
                // Delete entries
                foreach ($_POST['sel'] as $id => $sel)
                {
-                       $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_payout_types WHERE id=%s LIMIT 1",
-                        array(bigintval($id)), __FILE__, __LINE__);
+                       SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_payout_types WHERE id=%s LIMIT 1",
+                               array(bigintval($id)), __FILE__, __LINE__);
                }
                $msg = ADMIN_PAYOUT_ENTRIES_DELETED;
        }