]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
A lot while() conditions rewritten to SQL_FETCHARRAY(), see bug #107, @TODO tags...
[mailer.git] / inc / libs / bonus_functions.php
index 058770d3252916309fc60051333caa557b2a3d63..8a17b66694bdba4a1764f002799d54bfff68e31d 100644 (file)
@@ -43,7 +43,7 @@ function BONUS_ADD_TURBO_POINTS ($mid, $uid, $type) {
        if (getConfig('bonus_active') != "Y") return false;
 
        // Init variables
-       $SQL = ""; $bonys = 0; $mail = 0; $column = "";
+       $sql = ""; $bonys = 0; $mail = 0; $column = "";
 
        // Select SQL command
        switch ($type)
@@ -113,7 +113,7 @@ function BONUS_MAKE_RANK_ROWS ($data, $type, $uid) {
        $self = false; $OUT = "";
 
        // How many ranks do we have?
-       $ranks = sizeof(explode(";", getConfig('turbo_rates'))) + 1;
+       $ranks = count(explode(";", getConfig('turbo_rates'))) + 1;
 
        // Load current user's data
        $result = SQL_QUERY_ESC("SELECT level, points, timemark FROM `{!_MYSQL_PREFIX!}_bonus_turbo` WHERE %s=%s AND userid=%s LIMIT 1",