Obsoleted parameters to SQL_AFFECTED_ROWS() removed, OPEN_TABLE() and CLOSE_TABLE...
[mailer.git] / inc / modules / guest / what-confirm.php
index 9ac317ea977061053716923edef33648b0fb355a..1a1a632f656b6947646d426d13e6f3b0b2b51173 100644 (file)
@@ -40,7 +40,6 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 // Add description as navigation point
 ADD_DESCR("guest", basename(__FILE__));
 
-OPEN_TABLE("100%", "guest_content_align", "");
 if (!empty($_GET['hash']))
 {
        // Initialize the user ID
@@ -57,7 +56,7 @@ if (!empty($_GET['hash']))
                // Unlock his account (but only when it is on UNCONFIRMED!)
                $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET status='CONFIRMED', ref_payout='%s' WHERE user_hash='%s' AND status='UNCONFIRMED' LIMIT 1",
                 array($_CONFIG['ref_payout'], $_GET['hash']), __FILE__, __LINE__);
-               if (SQL_AFFECTEDROWS($link, __FILE__, __LINE__) == 1)
+               if (SQL_AFFECTEDROWS() == 1)
                {
                        $msg = LOAD_EMAIL_TEMPLATE("confirm-member", "", bigintval($uid));
 
@@ -183,6 +182,6 @@ if (!empty($_GET['hash']))
        // No hash found, the guest may want to enter his email address to re-get his confirmation link?
        LOAD_TEMPLATE("guest_confirm_link");
 }
-CLOSE_TABLE();
+
 //
 ?>