dever hace 4 años
padre
commit
e633c2d0d6
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      main/lib/Core.php

+ 3 - 1
main/lib/Core.php

@@ -13,7 +13,9 @@ class Core
     public function __construct()
     {
         $this->uid = Dever::load('passport/user')->check(false);
-        $this->uid = 1;
+        if (!$this->uid) {
+            $this->uid = 1;
+        }
         if ($this->uid) {
             $this->user = Dever::load('passport/api')->info($this->uid);
         } else {