Fixed check for section for MDL-8360, merged from MOODLE_17_STABLE

This commit is contained in:
poltawski 2007-03-14 16:31:56 +00:00
parent 3eb89b9997
commit 7f0463a64a

View File

@ -57,7 +57,7 @@ class block_admin_bookmarks extends block_base {
$bookmarks = array();
}
if($PAGE->section == 'search'){
if(isset($PAGE->section) and $PAGE->section == 'search'){
// the search page can't be properly bookmarked at present
$this->content->footer = '';
}elseif (($section = (isset($PAGE->section) ? $PAGE->section : '')) && (in_array($section, $bookmarks))) {