]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
RegisterThrottle didn't save the created time
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 7 Mar 2014 20:23:49 +0000 (21:23 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 7 Mar 2014 20:23:49 +0000 (21:23 +0100)
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?
         }