From 2d7de2af8da6230afc32996a108b809fb7c921fe Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 29 Jan 2016 12:49:06 -0500 Subject: [PATCH] testing for catid before display cat ancestors --- views/list_categories.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/views/list_categories.php b/views/list_categories.php index 84c7a5d..68b4934 100644 --- a/views/list_categories.php +++ b/views/list_categories.php @@ -1,7 +1,8 @@ "); ?> - + if($cat_id){ + $ancestors = get_category_parents($cat_id, false, " > "); ?> + }
' . Products . ''." > "; ?>