Changed !empty to isset to avoid warnings.
This commit is contained in:
+1
-1
@@ -895,7 +895,7 @@ function make_categories_list(&$list, &$parents, $category=NULL, $path="") {
|
||||
if ($categories = get_categories("$category->id")) { // Print all the children recursively
|
||||
foreach ($categories as $cat) {
|
||||
if (!empty($category->id)) {
|
||||
if (!empty($parents[$category->id])) {
|
||||
if (isset($parents[$category->id])) {
|
||||
$parents[$cat->id] = $parents[$category->id];
|
||||
}
|
||||
$parents[$cat->id][] = $category->id;
|
||||
|
||||
Reference in New Issue
Block a user