]> git.mxchange.org Git - mailer.git/blobdiff - beg.php
Variable DEPTH must be deleted before ADD_POINTS_REFSYSTEM() is being called :(
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index 2c31d0330e8fd7774765e2ff6c8386e702f36c56..f53f158f2ee2f8a3c0f5738cbce052198d7f6d87 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -132,7 +132,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                                        // Remember remote address, userid and timestamp for next click
                                        // but only when there is no admin begging.
                                        // Admins shall be able to test it!
-                                       $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_beg_ips (userid, remote_ip, timeout) VALUES('%s','%s', UNIX_TIMESTAMP())",
+                                       $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_beg_ips (userid, remote_ip, timeout) VALUES ('%s','%s', UNIX_TIMESTAMP())",
                                         array($uid, GET_REMOTE_ADDR()), __FILE__, __LINE__);
                                }
 
@@ -147,7 +147,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                                         array($points, $uid), __FILE__, __LINE__);
                                } else {
                                        // Add points to account
-                                       $DEPTH = 0;
+                                       unset($DEPTH);
                                        ADD_POINTS_REFSYSTEM($uid, $points, false, "0", $locked, strtolower($_CONFIG['beg_mode']));
                                }