RegisterThrottle didn't save the created time

This commit is contained in:
Mikael Nordfeldth 2014-03-07 21:23:49 +01:00
parent 326ad9376e
commit 940867e39d

View File

@ -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?
} }