$whereStatement .= ' AND (UNIX_TIMESTAMP() - `d`.`last_online`) < {?ap_inactive_since?}';
} // END - if
- // Is ext-holiday installed?
- if (isExtensionActive('holiday')) {
- // Exclude those as well
- $whereStatement .= " AND `d`.`holiday_active`='N'";
- } // END - if
-
// SQL string to check for accounts
$result_main = sqlQuery("SELECT
`d`.`userid`,
`{?_MYSQL_PREFIX?}_user_data` AS `d`
WHERE
`d`.`status`='CONFIRMED'
- " . $whereStatement . "
- " . runFilterChain('user_exclusion_sql', ' ') . " AND
+ " . runFilterChain('user_exclusion_sql', $whereStatement) . " AND
`d`.`beg_points` > 0
ORDER BY
`d`.`beg_points` DESC,