Index: /mods/wpsg_mod_productview.class.php
===================================================================
--- /mods/wpsg_mod_productview.class.php	(revision 5558)
+++ /mods/wpsg_mod_productview.class.php	(revision 5560)
@@ -333,10 +333,15 @@
 						'child_of' => $cat_id							
 					));
-					
-					foreach ($arSubCat as $sub_cat)
+
+					if (wpsg_isSizedArray($arSubCat))
 					{
-						
-						$arCatIDs[] = $sub_cat->term_id;
-						
+
+						foreach ($arSubCat as $sub_cat)
+						{
+
+							$arCatIDs[] = $sub_cat->term_id;
+
+						}
+
 					}
 										
@@ -344,5 +349,5 @@
 				
 				$arFilter = array(
-					'cat_ids' => $arCatIDs
+					'cat_ids' => wpsg_trim($arCatIDs)
 				);
 				
