mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fixed some notices on some custom pages
This commit is contained in:
parent
a84902827e
commit
3a1ac34002
2 changed files with 5 additions and 5 deletions
|
@ -7195,10 +7195,10 @@ function setup_lang_from_browser() {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function is_newnav($navigation) {
|
||||
if (is_array($navigation) && $navigation['newnav']) {
|
||||
return(true);
|
||||
if (is_array($navigation) && !empty($navigation['newnav'])) {
|
||||
return true;
|
||||
} else {
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue