]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed check for section for MDL-8360, merged from MOODLE_17_STABLE
authorpoltawski <poltawski>
Wed, 14 Mar 2007 16:31:56 +0000 (16:31 +0000)
committerpoltawski <poltawski>
Wed, 14 Mar 2007 16:31:56 +0000 (16:31 +0000)
blocks/admin_bookmarks/block_admin_bookmarks.php

index fdbd61bd547fd6d34d9acf5f38641d9fd86571c2..9788e6071e7201bd8237751b59b00a5cd00830ff 100644 (file)
@@ -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))) {