mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Fixed some notices on some custom pages
This commit is contained in:
parent
a84902827e
commit
3a1ac34002
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3383,11 +3383,11 @@ function build_navigation($extranavlinks) {
|
||||
if ($i > 0) {
|
||||
$navigation .= get_separator();
|
||||
}
|
||||
if ($navlink['link'] && $i+1 < $countlinks) {
|
||||
if ((!empty($navlink['link'])) && $i+1 < $countlinks) {
|
||||
$navigation .= "<a onclick=\"this.target='$CFG->framename'\" href=\"{$navlink['link']}\">";
|
||||
}
|
||||
$navigation .= "{$navlink['name']}";
|
||||
if ($navlink['link'] && $i+1 < $countlinks) {
|
||||
if ((!empty($navlink['link'])) && $i+1 < $countlinks) {
|
||||
$navigation .= "</a>";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user