Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Cleanup: Remove a PHP notice in a forgotten edge case.
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Jul 19, 2018
1 parent f81e521 commit b27aa85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -6,6 +6,7 @@ Changes

### Unreleased

* 2018-07-19 - Cleanup: Remove a PHP notice in a forgotten edge case.
* 2018-07-19 - Split settings onto multiple settings pages.
* 2018-07-19 - Change collapse node icon to FontAwesome.

Expand Down
2 changes: 1 addition & 1 deletion lib.php
Expand Up @@ -582,7 +582,7 @@ function local_boostnavigation_extend_navigation(global_navigation $navigation)
// Check if admin wanted us to also collapse the custom bottom nodes for admins.
if ($config->collapsecustombottomnodesadmins == true) {
// Remember the collapsible node for JavaScript.
if (is_array($collapsenodesforjs)) {
if (!empty($collapsenodesforjs) && is_array($collapsenodesforjs)) {
$collapsenodesforjs = array_merge($collapsenodesforjs, $customnodesret);
} else {
$collapsenodesforjs = $customnodesret;
Expand Down

0 comments on commit b27aa85

Please sign in to comment.