vali hace 6 años
padre
commit
4ee001d054
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      application/index/controller/Register.php

+ 1 - 1
application/index/controller/Register.php

@@ -130,7 +130,7 @@ class Register extends Common
             }
         }
 
-        if ($nowuid) {
+        if (!empty($nowuid)) {
             $old = Db::name('accounts')->where(['account_name' => $nowuid])->find();
             if ($old) {
                 Db::name('accounts')->where(['account_name' => $nowuid])->update(['last_login_time' => time()]);