Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
compatible php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KhietNguyen83 committed Jul 11, 2022
1 parent 55bcb35 commit 5cd1686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Block/Popup.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function checkExclude()
public function checkExcludePages()
{
$fullActionName = $this->getRequest()->getFullActionName();
$arrayPages = explode("\n", $this->_helperData->getWhereToShowConfig('exclude_pages'));
$arrayPages = explode("\n", $this->_helperData->getWhereToShowConfig('exclude_pages') ?: '');
$includePages = array_map('trim', $arrayPages);

return !in_array($fullActionName, $includePages, true);
Expand Down

0 comments on commit 5cd1686

Please sign in to comment.