rev update
This commit is contained in:
parent
8c83828f83
commit
5255a5c9a9
3 changed files with 33 additions and 7 deletions
|
|
@ -12,7 +12,7 @@ function register_post(&$a) {
|
|||
call_hooks('register_post', $arr);
|
||||
|
||||
$max_dailies = intval(get_config('system','max_daily_registrations'));
|
||||
if($max_dailes) {
|
||||
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) {
|
||||
return;
|
||||
|
|
@ -182,7 +182,7 @@ function register_content(&$a) {
|
|||
}
|
||||
|
||||
$max_dailies = intval(get_config('system','max_daily_registrations'));
|
||||
if($max_dailes) {
|
||||
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('max daily registrations exceeded.');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue