From d43481048e33f4988306e61e8df1f27554676db7 Mon Sep 17 00:00:00 2001 From: ryuring Date: Tue, 5 Dec 2023 21:18:05 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A6=E3=83=8B=E3=83=83=E3=83=88=E3=83=86?= =?UTF-8?q?=E3=82=B9=E3=83=88=E3=81=8C=E5=A4=B1=E6=95=97=E3=81=97=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=9F=E3=81=9F=E3=82=81=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/baser-core/src/Model/Table/SitesTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/baser-core/src/Model/Table/SitesTable.php b/plugins/baser-core/src/Model/Table/SitesTable.php index c7624fb76e..341a788010 100644 --- a/plugins/baser-core/src/Model/Table/SitesTable.php +++ b/plugins/baser-core/src/Model/Table/SitesTable.php @@ -743,7 +743,7 @@ public function save(EntityInterface $entity, $options = []) if($request) { $session = Router::getRequest()->getSession(); $currentSite = $session->read('BcApp.Admin.currentSite'); - if ($success->id === $currentSite->id) { + if ($currentSite && $success->id === $currentSite->id) { $session->write('BcApp.Admin.currentSite', $success); } }