DataObjects/Core_person.php
authorAlan Knowles <alan@roojs.com>
Thu, 17 Dec 2020 06:45:15 +0000 (14:45 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 17 Dec 2020 06:45:15 +0000 (14:45 +0800)
DataObjects/Core_person.php

index 87c44cb..1981a07 100644 (file)
@@ -567,7 +567,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         $u = DB_DataObject::Factory($this->tableName());
         $u->get($id);
         $url = implode("/", $bits);
-        if ($time < date()) {
+        if ($time < time()) {
             return false;
         }
         if ($hash == hash('sha256', serialize(array($url, $time, $u->email, $u->passwd)))) {