rabin 4 kuukautta sitten
vanhempi
commit
00fd40d7de
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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);