]> git.mxchange.org Git - mailer.git/blobdiff - beg.php
Fixes for wrong config entries
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index a7564ce67cf720227a91989481adcd7643808cb6..168c5ad45e8444f996e56eef94a7072314acff1e 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -49,7 +49,7 @@ $msg = null;
 require ("inc/config.php");
 
 // Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) {
+if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Check for userid
        if (!empty($_GET['uid'])) {
                // Init user ID
@@ -126,7 +126,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                                        // 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, getenv('REMOTE_ADDR')), __FILE__, __LINE__);
                                }