]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-payments.php
Obsoleted parameters to SQL_AFFECTED_ROWS() removed, OPEN_TABLE() and CLOSE_TABLE...
[mailer.git] / inc / modules / admin / what-payments.php
index fe64ee8c488f1d8a11c16282f6e5faf4678f31f0..9e002454169a6932c2a5939c645c417c1210bb14 100644 (file)
@@ -40,9 +40,6 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
-OPEN_TABLE("100%", "admin_content admin_content_align", "");
-global $link;
-
 if (empty($_GET['do'])) unset($_GET['do']);
 if (((empty($_POST['t_wait'])) || (empty($_POST['payment']))) && (!empty($_GET['do'])) && ($_GET['do'] == "add"))
 {
 if (empty($_GET['do'])) unset($_GET['do']);
 if (((empty($_POST['t_wait'])) || (empty($_POST['payment']))) && (!empty($_GET['do'])) && ($_GET['do'] == "add"))
 {
@@ -91,7 +88,7 @@ if (isset($_POST['ok']))
                                $result = SQL_QUERY(trim($s), __FILE__, __LINE__);
                                if (empty($content))
                                {
                                $result = SQL_QUERY(trim($s), __FILE__, __LINE__);
                                if (empty($content))
                                {
-                                       if (SQL_AFFECTEDROWS($link, __FILE__, __LINE__) == 1)
+                                       if (SQL_AFFECTEDROWS() == 1)
                                        {
                                                $content = "<SPAN class=\"admin_done\">".SETTINGS_SAVED."</SPAN>";
                                        }
                                        {
                                                $content = "<SPAN class=\"admin_done\">".SETTINGS_SAVED."</SPAN>";
                                        }
@@ -208,6 +205,6 @@ if (isset($_POST['ok']))
        // Form for adding new referral levels
        LOAD_TEMPLATE("admin_add_payment");
 }
        // Form for adding new referral levels
        LOAD_TEMPLATE("admin_add_payment");
 }
-CLOSE_TABLE();
+
 //
 ?>
 //
 ?>