Skip to content
Snippets Groups Projects
Unverified Commit 381ef297 authored by briancanini's avatar briancanini Committed by GitHub
Browse files

Merge pull request #72 from ASCWebServices/bw-updates

Get rid of annoying "undefined index: hidden" notices
parents 4bce7ddd 79fc9048
No related branches found
No related tags found
No related merge requests found
......@@ -236,6 +236,9 @@
},
"drupal/addtocalendar": {
"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 @@
"status": "covered",
"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",
......
......@@ -63,7 +63,7 @@ public function permissions() {
// administration per theme.
$themes = $this->themeHandler->listInfo();
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] = [
'title' => $this->t('Administer block settings for the theme @label', ['@label' => ucfirst($theme->getName())]),
'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