Skip to content
Snippets Groups Projects
Commit 79fc9048 authored by bcweaver's avatar bcweaver
Browse files

Get rid of annoying "undefined index: hidden" notices

parent 4bce7ddd
No related branches found
No related tags found
No related merge requests found
...@@ -236,6 +236,9 @@ ...@@ -236,6 +236,9 @@
}, },
"drupal/addtocalendar": { "drupal/addtocalendar": {
"UTC Time Adjustment": "patches/utc-time-adjustment.patch" "UTC Time Adjustment": "patches/utc-time-adjustment.patch"
},
"drupal/block_permissions": {
"2962965": "https://www.drupal.org/files/issues/2018-09-01/block-permissions-2962965-4.patch"
} }
} }
}, },
......
...@@ -1710,6 +1710,9 @@ ...@@ -1710,6 +1710,9 @@
"status": "covered", "status": "covered",
"message": "Covered by Drupal's security advisory policy" "message": "Covered by Drupal's security advisory policy"
} }
},
"patches_applied": {
"2962965": "https://www.drupal.org/files/issues/2018-09-01/block-permissions-2962965-4.patch"
} }
}, },
"installation-source": "dist", "installation-source": "dist",
......
...@@ -63,7 +63,7 @@ public function permissions() { ...@@ -63,7 +63,7 @@ public function permissions() {
// administration per theme. // administration per theme.
$themes = $this->themeHandler->listInfo(); $themes = $this->themeHandler->listInfo();
foreach ($themes as $key => $theme) { foreach ($themes as $key => $theme) {
if ($theme->status == 1 && $theme->info['hidden'] != 1) { if (isset($theme->info['hidden']) && $theme->status == 1 && $theme->info['hidden'] != 1) {
$permissions['administer block settings for theme ' . $key] = [ $permissions['administer block settings for theme ' . $key] = [
'title' => $this->t('Administer block settings for the theme @label', ['@label' => ucfirst($theme->getName())]), 'title' => $this->t('Administer block settings for the theme @label', ['@label' => ucfirst($theme->getName())]),
'description' => $this->t('This permission s the administer blocks permission.'), 'description' => $this->t('This permission s the administer blocks permission.'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment