From: moodler Date: Mon, 2 Oct 2006 08:36:25 +0000 (+0000) Subject: Only show search box when there is content in the block X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bf1e4b9cdcad7f7c3b589112c0693cd443edae68;p=moodle.git Only show search box when there is content in the block --- diff --git a/blocks/admin_tree/block_admin_tree.php b/blocks/admin_tree/block_admin_tree.php index d6ad1b92be..67b7e4b52b 100644 --- a/blocks/admin_tree/block_admin_tree.php +++ b/blocks/admin_tree/block_admin_tree.php @@ -182,18 +182,19 @@ class block_admin_tree extends block_base { $this->content->text .= $this->expandjavascript; $this->content->text .= '' . "\n"; + + $searchcontent = isset($CFG->adminsearchquery) ? $CFG->adminsearchquery : ''; + + $this->content->footer = '
'. + '
'. + ''. + ''. + '
'; } else { $this->content = new stdClass; $this->content->text = ''; } - $searchcontent = isset($CFG->adminsearchquery) ? $CFG->adminsearchquery : ''; - - $this->content->footer = '
'. - '
'. - ''. - ''. - '
'; return $this->content; }