From a89b8f4e0d81c9eb5cbb4a178c8b840a53aabf6a Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Thu, 23 Apr 2020 10:10:58 +0800 Subject: [PATCH] Script.php: why use the function trim? --- Script.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Script.php b/Script.php index 65ca093..a09609c 100644 --- a/Script.php +++ b/Script.php @@ -830,7 +830,7 @@ if(strlen($_FILES['attachment1']['name']) > 2 ) { // When $group_id is not properly initialized, use integer 0 as its value. // This temporarily fixed the "Students unable to submit assignment after a recent change" bug at http://118.25.96.118/bugzilla/show_bug.cgi?id=65 - if (trim($group_id) === '') { + if (trim($group_id) === '') { // when $group_id is an empty string or contains only whitespace characters. $group_id = 0; // FIXME }