]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/RegisterThrottle/RegisterThrottlePlugin.php
RegisterThrottle didn't save the created time
[quix0rs-gnu-social.git] / plugins / RegisterThrottle / RegisterThrottlePlugin.php
index 251a2b4c7967207104f0bc5357f132d65bc9af83..dbff2bace8c853842a75f0e95da6eba93679187f 100644 (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?
         }