X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fuimport.php;h=62bece5e3a2cc0291986339a7358d05e567a2079;hb=3972fe62fe8afb3791e9d6526e7665501a577b81;hp=8abff0cd997f521fc4559c63c995488a8bc630f9;hpb=c6b45a958e3b09bc8f3950a718c181dfc9e0b910;p=friendica.git diff --git a/mod/uimport.php b/mod/uimport.php index 8abff0cd99..62bece5e3a 100644 --- a/mod/uimport.php +++ b/mod/uimport.php @@ -1,6 +1,6 @@ get('system', 'max_daily_registrations')); if ($max_dailies) { - $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.'); notice(DI::l10n()->t('This site has exceeded the number of allowed daily account registrations. Please try again tomorrow.')); return; }