X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fuimport.php;h=62bece5e3a2cc0291986339a7358d05e567a2079;hb=b0bf4b435949e923caa5d6d52b12d364bf16ae82;hp=8abff0cd997f521fc4559c63c995488a8bc630f9;hpb=ee8689cc899beecaf0943ac175550a7fb49cf199;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; }