From: martinlanghoff Date: Thu, 18 Nov 2004 02:47:02 +0000 (+0000) Subject: Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-321 Fixed bug in user... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0c3e818cb1439314924b536cdeb671c0a44b24e2;p=moodle.git Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-321 Fixed bug in user search: now we trim() the search string --- diff --git a/admin/user.php b/admin/user.php index 0ae6d8f99a..de3c81e813 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