Skip to content

Commit

Permalink
fix: access property id on bool
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Jan 24, 2023
1 parent eea5207 commit 876e66c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static function getModuleInfo()
{
return [
'title' => 'RockFrontend',
'version' => '2.17.0',
'version' => '2.17.1',
'summary' => 'Module for easy frontend development',
'autoload' => true,
'singular' => true,
Expand Down Expand Up @@ -432,7 +432,7 @@ public function alfred($page = null, $options = [])
// set the page to be edited
$p = false;
if ($page) $p = $this->wire->pages->get((string)$page);
if (!$p->id) $p = false;
if ($p instanceof Page and !$p->id) $p = false;
$page = $p;

// check if the current page is a RPB block
Expand Down

0 comments on commit 876e66c

Please sign in to comment.