Some typos
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index 139a4e633e3cba850102d3fe06e622d1b1f3aab7..b488df11eb4308bb0bccf3ecd82f04abb1399efd 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -54,7 +54,7 @@ require('inc/config-global.php');
 setContentType('text/html');
 
 // Is the 'beg' extension active?
-REDIRCT_ON_UNINSTALLED_EXTENSION('beg');
+redirectOnUninstalledExtension('beg');
 
 // Check for userid
 if (isGetRequestElementSet('userid')) {
@@ -88,7 +88,7 @@ if (isGetRequestElementSet('userid')) {
 
        // Check if account was found
        if (SQL_NUMROWS($result) == 1) {
-               // Found an ID so we simply set it
+               // Found an id so we simply set it
                list($userid, $clicks, $ref_payout, $status, $last) = SQL_FETCHROW($result);
 
                // Account confirmed?
@@ -204,7 +204,7 @@ if (isGetRequestElementSet('userid')) {
        } elseif (($status != 'CONFIRMED') && ($status != 'failed')) {
                // Maybe locked/unconfirmed account?
                $errorCode = generateErrorCodeFromUserStatus($status);
-       } elseif (($userid == '0') || ($status == 'failed')) {
+       } elseif (($userid == 0) || ($status == 'failed')) {
                // Inalid or locked account, so let's find out
                $result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE nickname='%s' LIMIT 1",
                        array(getRequestElement('userid')), __FILE__, __LINE__);
@@ -219,7 +219,7 @@ if (isGetRequestElementSet('userid')) {
                // Free memory
                SQL_FREERESULT($result);
        } elseif ($userid == getConfig('beg_userid')) {
-               // Webmaster's ID cannot beg for points!
+               // Webmaster's id cannot beg for points!
                $errorCode = getCode('BEG_SAME_AS_OWN');
        }