Fix in CREATE_EXTENSION_DEACTIVATION_TASK() and coding-style updated
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index b970743b93a211b90671ad701f596d2f6940b866..0e959659de2e299136e4c8a354bb99d64ae97195 100644 (file)
@@ -103,14 +103,14 @@ ORDER BY sp.pay_name",
                        SQL_FREERESULT($result_main);
 
                        // Unlock sponsor account
-                       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data SET status='CONFIRMED'
+                       SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data SET status='CONFIRMED'
 WHERE id='%s' AND status='PENDING' LIMIT 1",
  array($id), __FILE__, __LINE__);
 
                        // Update, if applyable, referal count and points
                        if (($refid > 0) && ($refid != $id)) {
                                // Update referal account
-                               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data
+                               SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data
 SET points_amount=points_amount+%s, ref_count=ref_count+1
 WHERE id='%s' LIMIT 1",
  array(getConfig('sponsor_ref_points'), bigintval($refid)), __FILE__, __LINE__);