dever %!s(int64=3) %!d(string=hai) anos
pai
achega
639974b563
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main/lib/Core.php

+ 1 - 1
main/lib/Core.php

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