Skip to content

Commit

Permalink
Fixed check for section for MDL-8360, merged from MOODLE_17_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
poltawski committed Mar 14, 2007
1 parent 3eb89b9 commit 7f0463a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/admin_bookmarks/block_admin_bookmarks.php
Expand Up @@ -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))) {
Expand Down

0 comments on commit 7f0463a

Please sign in to comment.