X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FRegisterThrottle%2FRegisterThrottlePlugin.php;fp=plugins%2FRegisterThrottle%2FRegisterThrottlePlugin.php;h=dbff2bace8c853842a75f0e95da6eba93679187f;hb=940867e39d051356cffccb287f112713e5e9c797;hp=251a2b4c7967207104f0bc5357f132d65bc9af83;hpb=326ad9376e46c61da54052b6d8acf7449da5cdfd;p=quix0rs-gnu-social.git 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? }