We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ef902 commit eaa3636Copy full SHA for eaa3636
DashboardPanelShortcuts.module
@@ -109,7 +109,7 @@ class DashboardPanelShortcuts extends DashboardPanel
109
}
110
111
112
- if ($page && $this->isPageViewable($page)) {
+ if (is_object($page) && $this->isPageViewable($page)) {
113
$info = $this->getPageInfo($page);
114
$title = $title ?? (is_string($key) ? $key : $info->title);
115
$summary = $summary ?? $info->summary;
@@ -223,7 +223,7 @@ class DashboardPanelShortcuts extends DashboardPanel
223
224
protected function isPageViewable($page)
225
{
226
- if (!$page || !$page->url) {
+ if (!($page->url ?? null)) {
227
return false;
228
229
if (!$this->checkAccess) {
0 commit comments