From 940867e39d051356cffccb287f112713e5e9c797 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 7 Mar 2014 21:23:49 +0100 Subject: [PATCH] RegisterThrottle didn't save the created time --- plugins/RegisterThrottle/RegisterThrottlePlugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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? } -- 2.39.5