$add = ''; $DT_MODE = 0;
if ($userid > 0) {
// Load entries only from a single user
- $add = " AND `userid`='".bigintval($userid)."'";
+ $add = sprintf(" AND `userid`=%s", bigintval($userid));
$mode = 'member'; $COLS = 4; $DT_MODE = 2;
$message = getMessage('DOUBLER_MEMBER_NO_ENTRIES_FOUND');
} else {
FROM
`{?_MYSQL_PREFIX?}_doubler`
WHERE
- `completed`='".$done."' AND is_ref`='".$ref."'".$add."
+ `completed`='".$done."' AND `is_ref`='".$ref."'".$add."
ORDER BY
`timemark` ".$sort."
LIMIT ".$limit, __FUNCTION__, __LINE__);