Permalink
Browse files

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

  • Loading branch information...
poltawski
poltawski committed Mar 14, 2007
1 parent 87c39bf commit 9bb4b97e3da2ead6669eda1a7556daa4599d1ffb
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/admin_bookmarks/block_admin_bookmarks.php
@@ -57,7 +57,7 @@ function get_content() {
$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))) {

0 comments on commit 9bb4b97

Please sign in to comment.