mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Fixed check for section for MDL-8360, merged from MOODLE_17_STABLE
This commit is contained in:
parent
3eb89b9997
commit
7f0463a64a
@ -57,7 +57,7 @@ class block_admin_bookmarks extends block_base {
|
|||||||
$bookmarks = array();
|
$bookmarks = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($PAGE->section == 'search'){
|
if(isset($PAGE->section) and $PAGE->section == 'search'){
|
||||||
// the search page can't be properly bookmarked at present
|
// the search page can't be properly bookmarked at present
|
||||||
$this->content->footer = '';
|
$this->content->footer = '';
|
||||||
}elseif (($section = (isset($PAGE->section) ? $PAGE->section : '')) && (in_array($section, $bookmarks))) {
|
}elseif (($section = (isset($PAGE->section) ? $PAGE->section : '')) && (in_array($section, $bookmarks))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user