From 3f26745351a081c89f58433c82b7768ee51e285b Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 9 Aug 2003 06:02:01 +0000 Subject: [PATCH] Better button behaviour --- mod/forum/search.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/forum/search.php b/mod/forum/search.php index 96777157b5d2b..081468d1225e2 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -83,12 +83,14 @@ if (count($posts) == $perpage) { $options = array(); $options["id"] = $course->id; - $options["search"] = urlencode($search); + $options["search"] = $search; $options["page"] = $page+1; $options["perpage"] = $perpage; echo "
"; print_single_button("search.php", $options, get_string("searcholderposts", "forum")); echo "
"; + } else { + print_heading(get_string("nomorepostscontaining", "forum", $search)); } }