X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fdoubler_functions.php;h=154c2afe982be6a58ac397b33b931e1935339f11;hb=985561270461045c64719266ca6b3a795f6cd76a;hp=94148e21bc63f7d3976ee259e5692a9e4afb209e;hpb=dbf61d1604d6aae6019a7a8b851b7006a98bce1b;p=mailer.git diff --git a/inc/libs/doubler_functions.php b/inc/libs/doubler_functions.php index 94148e21bc..154c2afe98 100644 --- a/inc/libs/doubler_functions.php +++ b/inc/libs/doubler_functions.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -42,7 +42,7 @@ if (!defined('__SECURITY')) { // Generates a HTML table based on given data // @TODO Lame description -function generateDoublerTable ($userid = '0', $done = 'N', $ref = 'N', $sort = 'ASC') { +function generateDoublerTable ($userid = NULL, $done = 'N', $ref = 'N', $sort = 'ASC') { $add = ''; $DT_MODE = '0'; if (isValidUserId($userid)) { // Load entries only from a single user @@ -68,11 +68,13 @@ function generateDoublerTable ($userid = '0', $done = 'N', $ref = 'N', $sort = ' // List entries $result = SQL_QUERY_ESC("SELECT - `userid`, `refid`, `points`, `timemark` + `userid`,`refid`,`points`,`timemark` FROM `{?_MYSQL_PREFIX?}_doubler` WHERE - `completed`='%s' AND `is_ref`='%s'" . $add . " + `completed`='%s' AND + `is_ref`='%s' + " . $add . " ORDER BY `timemark` %s LIMIT %s",