rabin 3 miesięcy temu
rodzic
commit
00fd40d7de
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      lib/Auth.php

+ 2 - 2
lib/Auth.php

@@ -3,7 +3,7 @@ use Dever;
 class Auth
 {
     protected $login = true;
-    protected $uid;
+    public $uid;
     protected $user;
     protected $system;
     protected $info;
@@ -83,7 +83,7 @@ class Auth
         $data['menu_id'] = $this->menu['id'];
         $data['key'] = $key;
         $key = $key . $data['menu_id'];
-        if (isset($this->func[$key])) {
+        if (isset($this->func[$key]['id'])) {
             return $this->func[$key]['id'];
         }
         $this->func[$key] = Dever::db('menu_func', 'manage')->find($data);