Changed !empty to isset to avoid warnings.

This commit is contained in:
stronk7
2003-09-20 17:33:55 +00:00
parent 2832badf38
commit 3bd4de22f5
+1 -1
View File
@@ -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;