* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * 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 *
// 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
// 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",