- $r = q("select count(*) as total from user where register_date > UTC_TIMESTAMP - INTERVAL 1 day");
- if ($r && $r[0]['total'] >= $max_dailies) {
- Logger::log('max daily registrations exceeded.');
+ $total = DBA::count('user', ["`register_date` > UTC_TIMESTAMP - INTERVAL 1 DAY"]);
+ if ($total >= $max_dailies) {
+ Logger::notice('max daily registrations exceeded.');