From 0c3e818cb1439314924b536cdeb671c0a44b24e2 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Thu, 18 Nov 2004 02:47:02 +0000 Subject: [PATCH] Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-321 Fixed bug in user search: now we trim() the search string --- admin/user.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/user.php b/admin/user.php index 0ae6d8f99ae..de3c81e813f 100644 --- a/admin/user.php +++ b/admin/user.php @@ -10,6 +10,9 @@ optional_variable($dir, "ASC"); optional_variable($page, 0); optional_variable($search, ""); + if (!empty($search)) { + $search=trim($search); + } optional_variable($lastinitial, ""); // only show students with this last initial optional_variable($firstinitial, ""); // only show students with this first initial optional_variable($perpage, "30"); // how many per page