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
1 changed files with 2 additions and 1 deletions

View File

@ -156,10 +156,11 @@ class RegisterThrottlePlugin extends Plugin
$reg->user_id = $profile->id;
$reg->ipaddress = $ipaddress;
$reg->created = common_sql_now();
$result = $reg->insert();
if (!$result) {
if ($result === false) {
common_log_db_error($reg, 'INSERT', __FILE__);
// @todo throw an exception?
}