Commit 7dea50f2 authored by Jonny Bradley's avatar Jonny Bradley

[FIX] categories: Clear the $tree var if category is empty

parent 7eb8e3bf
......@@ -94,6 +94,7 @@ function module_categories($mod_reference, &$module_params)
$categId = 0;
}
if (empty($categories)) {
$smarty->clearAssign('tree');
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment