Bug 404 Edson 201938330189 (#42)
Writing the course code in lower letters, results in "No results found for your Search" i solved this issue by adding $search=strtoupper($_GET['search']); line in courses.php file Co-authored-by: edson <edsonnyoni92@gmail.com> Co-authored-by: Lan Hui <lanhui@zjnu.edu.cn> Reviewed-on: http://121.4.94.30:3000/mrlan/LRR/pulls/42 Co-authored-by: EDSON NYONI <edsonnyoni92@gmail.com> Co-committed-by: EDSON NYONI <edsonnyoni92@gmail.com>Bug196-Ward
parent
3bff64f400
commit
0065489fcb
|
@ -558,6 +558,7 @@ if( $_SESSION['user_type']=="Student")
|
||||||
if(!empty($_GET["search"]) || !empty($_GET["faculty"]))
|
if(!empty($_GET["search"]) || !empty($_GET["faculty"]))
|
||||||
{
|
{
|
||||||
$search = trim(mysqli_real_escape_string($con, $_GET["search"]));
|
$search = trim(mysqli_real_escape_string($con, $_GET["search"]));
|
||||||
|
$search = strtoupper($_GET['search']);
|
||||||
$faculty = mysqli_real_escape_string($con, $_GET["faculty"]);
|
$faculty = mysqli_real_escape_string($con, $_GET["faculty"]);
|
||||||
|
|
||||||
// the user has not entered something under "Find course by Code"
|
// the user has not entered something under "Find course by Code"
|
||||||
|
|
Loading…
Reference in New Issue