From: Mikael Nordfeldth Date: Fri, 7 Mar 2014 20:23:49 +0000 (+0100) Subject: RegisterThrottle didn't save the created time X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=940867e39d051356cffccb287f112713e5e9c797;p=quix0rs-gnu-social.git RegisterThrottle didn't save the created time --- diff --git a/plugins/RegisterThrottle/RegisterThrottlePlugin.php b/plugins/RegisterThrottle/RegisterThrottlePlugin.php index 251a2b4c79..dbff2bace8 100644 --- a/plugins/RegisterThrottle/RegisterThrottlePlugin.php +++ b/plugins/RegisterThrottle/RegisterThrottlePlugin.php @@ -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? }