From bf1e4b9cdcad7f7c3b589112c0693cd443edae68 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 2 Oct 2006 08:36:25 +0000 Subject: [PATCH] Only show search box when there is content in the block --- blocks/admin_tree/block_admin_tree.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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; } -- 2.39.5