Browse Source

fix recursive objects comparsion

PHP-GTK3
yggverse 4 months ago
parent
commit
44eabdc94c
  1. 6
      src/Entity/Browser/Container/Page.php
  2. 2
      src/Entity/Browser/Container/Page/Content.php

6
src/Entity/Browser/Container/Page.php

@ -188,7 +188,7 @@ class Page
); );
// Refresh header by new title if current page is active // Refresh header by new title if current page is active
if ($this == $this->container->tab->getPage()) if ($this === $this->container->tab->getPage())
{ {
$this->container->browser->header->setTitle( $this->container->browser->header->setTitle(
$this->title->getValue(), $this->title->getValue(),
@ -222,7 +222,7 @@ class Page
); );
// Refresh header by new title if current page is active // Refresh header by new title if current page is active
if ($this == $this->container->tab->getPage()) if ($this === $this->container->tab->getPage())
{ {
$this->container->browser->header->setTitle( $this->container->browser->header->setTitle(
$this->title->getValue(), $this->title->getValue(),
@ -255,7 +255,7 @@ class Page
); );
// Refresh header by new title if current page is active // Refresh header by new title if current page is active
if ($this == $this->container->tab->getPage()) if ($this === $this->container->tab->getPage())
{ {
$this->container->browser->header->setTitle( $this->container->browser->header->setTitle(
$this->title->getValue() $this->title->getValue()

2
src/Entity/Browser/Container/Page/Content.php

@ -90,7 +90,7 @@ class Content
); );
// Refresh header by new title if current page is active // Refresh header by new title if current page is active
if ($this->page == $this->page->container->tab->getPage()) if ($this->page === $this->page->container->tab->getPage())
{ {
$this->page->container->browser->header->setTitle( $this->page->container->browser->header->setTitle(
$this->page->title->getValue(), $this->page->title->getValue(),

Loading…
Cancel
Save