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

This commit is contained in:
poltawski
2007-03-14 16:35:10 +00:00
parent 87c39bf549
commit 9bb4b97e3d
@@ -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))) {