From 7f0463a64abfeb0082fce647d6521f14bdca257e Mon Sep 17 00:00:00 2001 From: poltawski Date: Wed, 14 Mar 2007 16:31:56 +0000 Subject: [PATCH] Fixed check for section for MDL-8360, merged from MOODLE_17_STABLE --- blocks/admin_bookmarks/block_admin_bookmarks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/admin_bookmarks/block_admin_bookmarks.php b/blocks/admin_bookmarks/block_admin_bookmarks.php index fdbd61bd547..9788e6071e7 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))) {