X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fbonus_functions.php;h=dd4959a04cc94f5938d863851962ddc749242f9c;hp=058770d3252916309fc60051333caa557b2a3d63;hb=f3e4c2c048761589836fdbe6bd2e46599a1833a7;hpb=b8c86fa12322603c24a88ea2b0fd3dbeba612752 diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index 058770d325..dd4959a04c 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Spezielle Funktion fuer bonus-Erweiterung * * -------------------------------------------------------------------- * - * * + * $Revision:: 856 $ * + * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: stelzi $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -43,7 +48,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 +118,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",