Skip to content

Commit 3f788c4

Browse files
committed
Fix deprecation warning
1 parent 8f54754 commit 3f788c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DashboardPanelCollection.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class DashboardPanelCollection extends DashboardPanel
107107
}
108108

109109
// Special case: icon as column header
110-
if (strpos($label, 'fa-') === 0) {
110+
if (strpos($label ?: '', 'fa-') === 0) {
111111
$label = $this->renderIcon($label);
112112
}
113113

DashboardPanelShortcuts.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class DashboardPanelShortcuts extends DashboardPanel
138138
}
139139

140140
$url = $link['url'] ?? null;
141-
$isAdminLink = strpos($url, $this->config->urls->admin) === 0;
141+
$isAdminLink = strpos($url ?: '', $this->config->urls->admin) === 0;
142142
$title = $this->sanitizer->entities1($link['title'] ?? $link['url'] ?? '');
143143
$summary = $this->summaries ? $this->sanitizer->entities1($link['summary'] ?? '') : '';
144144
$icon = $this->renderPageIcon($link['icon'] ?? null);

0 commit comments

Comments
 (0)