From 186eac59088e15a132b6b2433bf384721d718dda Mon Sep 17 00:00:00 2001 From: Jack Smith Date: Thu, 1 Dec 2022 23:21:37 +0000 Subject: [PATCH] PSC 127 fix --- core/components/com_courses/admin/controllers/assetgroups.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/com_courses/admin/controllers/assetgroups.php b/core/components/com_courses/admin/controllers/assetgroups.php index b694462ff90..7c15f543a69 100644 --- a/core/components/com_courses/admin/controllers/assetgroups.php +++ b/core/components/com_courses/admin/controllers/assetgroups.php @@ -172,7 +172,7 @@ public function treeRecurse($id, $indent, $list, $children, $maxlevel=9999, $lev $list[$id] = $v; $list[$id]->treename = "$indent$txt"; - $list[$id]->children = count(@$children[$id]); + $list[$id]->children = (@children[$id]) ? count(@$children[$id]) : 0; $list = $this->treeRecurse($id, $indent . $spacer, $list, $children, $maxlevel, $level+1, $type); } }