Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Fix visibility checks for global alerts. #2382

Open
wants to merge 1 commit into
base: 9.x-2.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ private function checkVisibility(NodeInterface $node) {
}

$visibility_paths = mb_strtolower($visibility_paths);
$pages = preg_split("(\r\n?|\n)", $visibility_paths);
$pages = array_filter(preg_split("(\r\n?|\n)", $visibility_paths));

if (empty($pages)) {
// Global alert.
Expand Down