From: poltawski Date: Wed, 14 Mar 2007 16:31:56 +0000 (+0000) Subject: Fixed check for section for MDL-8360, merged from MOODLE_17_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7f0463a64abfeb0082fce647d6521f14bdca257e;p=moodle.git Fixed check for section for MDL-8360, merged from MOODLE_17_STABLE --- diff --git a/blocks/admin_bookmarks/block_admin_bookmarks.php b/blocks/admin_bookmarks/block_admin_bookmarks.php index fdbd61bd54..9788e6071e 100644 --- a/blocks/admin_bookmarks/block_admin_bookmarks.php +++ b/blocks/admin_bookmarks/block_admin_bookmarks.php @@ -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))) {