From d359d0ef2dd66e7d01c3e74f179a85e8714d5088 Mon Sep 17 00:00:00 2001 From: Ali Alam Date: Thu, 23 Apr 2026 09:46:33 +0800 Subject: [PATCH] Improved checking in browse unit details page --- Flexible Learning/CHANGEDB.php | 4 ++++ Flexible Learning/CHANGELOG.txt | 3 +++ Flexible Learning/manifest.php | 2 +- Flexible Learning/units_browse_details.php | 2 +- Flexible Learning/version.php | 2 +- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Flexible Learning/CHANGEDB.php b/Flexible Learning/CHANGEDB.php index fc4548d..08c9a53 100755 --- a/Flexible Learning/CHANGEDB.php +++ b/Flexible Learning/CHANGEDB.php @@ -292,3 +292,7 @@ $sql[$count][0] = '1.3.01'; $sql[$count][1] = ""; +//v1.3.03 +++$count; +$sql[$count][0] = '1.3.03'; +$sql[$count][1] = ""; \ No newline at end of file diff --git a/Flexible Learning/CHANGELOG.txt b/Flexible Learning/CHANGELOG.txt index 5d6ca24..996dc86 100755 --- a/Flexible Learning/CHANGELOG.txt +++ b/Flexible Learning/CHANGELOG.txt @@ -1,5 +1,8 @@ CHANGELOG ========= +v1.3.03 +------- +Improved checking in browse unit details page v1.3.01 ------- diff --git a/Flexible Learning/manifest.php b/Flexible Learning/manifest.php index b1f3a5f..a003048 100755 --- a/Flexible Learning/manifest.php +++ b/Flexible Learning/manifest.php @@ -27,7 +27,7 @@ $entryURL = "units_browse.php"; $type = "Additional"; $category = 'Learn'; -$version = '1.3.01'; +$version = '1.3.03'; $author = "Gibbon Foundation"; $url = "https://gibbonedu.org"; diff --git a/Flexible Learning/units_browse_details.php b/Flexible Learning/units_browse_details.php index 3dadc16..2aaa70a 100755 --- a/Flexible Learning/units_browse_details.php +++ b/Flexible Learning/units_browse_details.php @@ -156,7 +156,7 @@ ->selectAnyStudentsByFamilyAdult($session->get('gibbonSchoolYearID'), $session->get('gibbonPersonID')) ->fetchGroupedUnique(); - if (empty($children[$submission['gibbonPersonID']])) { + if (empty($submission) || empty($children[$submission['gibbonPersonID']])) { unset($submission); } } else { diff --git a/Flexible Learning/version.php b/Flexible Learning/version.php index ddbe2ab..d075141 100755 --- a/Flexible Learning/version.php +++ b/Flexible Learning/version.php @@ -22,5 +22,5 @@ /** * Sets version information */ -$moduleVersion = '1.3.01'; +$moduleVersion = '1.3.03'; $coreVersion = '28.0.00';