Skip to content

Commit

Permalink
エラーが発生した際、baserCMSのViewを利用していない場合に、Fatal Errorとなってしまう
Browse files Browse the repository at this point in the history
ツールバーでエラーの無限ループとなってしまう
  • Loading branch information
ryuring committed Mar 18, 2024
1 parent 9904f48 commit d65134f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions plugins/bc-admin-third/templates/element/toolbar.php
Expand Up @@ -96,11 +96,13 @@
</div>
<?php endif ?>
<?php
// EVENT leftOfToolbar
$event = $this->dispatchLayerEvent('leftOfToolbar', [], ['layer' => 'View', 'class' => '', 'plugin' => '']);
if ($event !== false) {
echo ($event->getResult() === null || $event->getResult() === true)? '' : $event->getResult();
}
if(method_exists($this, 'dispatchLayerEvent')) {
// EVENT leftOfToolbar
$event = $this->dispatchLayerEvent('leftOfToolbar', [], ['layer' => 'View', 'class' => '', 'plugin' => '']);
if ($event !== false) {
echo ($event->getResult() === null || $event->getResult() === true)? '' : $event->getResult();
}
}
?>
<?php if ($this->BcToolbar->isAvailableMode()): ?>
<div class="bca-toolbar__tools-mode">
Expand Down

0 comments on commit d65134f

Please sign in to comment.