diff --git a/admin/pagelib.php b/admin/pagelib.php index b1f45c99cef..ac87f0d1dd5 100644 --- a/admin/pagelib.php +++ b/admin/pagelib.php @@ -117,14 +117,11 @@ class page_admin extends page_base { // if not, print_header() has to be called with a $section parameter // The search page currently doesn't handle block editing - if ($this->user_allowed_editing()) { + if ($this->section != 'search' and $this->user_allowed_editing()) { $buttons = '
frametarget.' method="get" action="' . $this->url_get_path() . '">'. '
'. - ''; - if(isset($CFG->adminsearchquery)){ - $buttons.=''; - } - $buttons.='
'; + ''. + ''; } else { $buttons = ' '; }