shish 4 年 前
コミット
84ded13a06
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app-hd/controllers/BaseController.php

+ 1 - 1
app-hd/controllers/BaseController.php

@@ -43,7 +43,7 @@ class BaseController extends PublicController
         if (empty($admin) && in_array($action->id, $this->guestAccess) == false) {
         if (empty($admin) && in_array($action->id, $this->guestAccess) == false) {
             util::notLogin();
             util::notLogin();
         }
         }
-        $adminId = $admin->id;
+        $adminId = $admin->id ?? 0;
         $this->admin = $admin;
         $this->admin = $admin;
         $this->adminId = $adminId;
         $this->adminId = $adminId;
         if (in_array($action->id, $this->guestAccess) == false) {
         if (in_array($action->id, $this->guestAccess) == false) {