RegisterThrottle didn't save the created time
This commit is contained in:
parent
326ad9376e
commit
940867e39d
|
@ -156,10 +156,11 @@ class RegisterThrottlePlugin extends Plugin
|
||||||
|
|
||||||
$reg->user_id = $profile->id;
|
$reg->user_id = $profile->id;
|
||||||
$reg->ipaddress = $ipaddress;
|
$reg->ipaddress = $ipaddress;
|
||||||
|
$reg->created = common_sql_now();
|
||||||
|
|
||||||
$result = $reg->insert();
|
$result = $reg->insert();
|
||||||
|
|
||||||
if (!$result) {
|
if ($result === false) {
|
||||||
common_log_db_error($reg, 'INSERT', __FILE__);
|
common_log_db_error($reg, 'INSERT', __FILE__);
|
||||||
// @todo throw an exception?
|
// @todo throw an exception?
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user