File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
app/code/core/Mage/Catalog/Model/Resource/Product Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -596,14 +596,10 @@ public function addIdFilter($productId, $exclude = false)
596
596
return $ this ;
597
597
}
598
598
if (is_array ($ productId )) {
599
- if (!empty ($ productId )) {
600
- if ($ exclude ) {
601
- $ condition = array ('nin ' => $ productId );
602
- } else {
603
- $ condition = array ('in ' => $ productId );
604
- }
599
+ if ($ exclude ) {
600
+ $ condition = array ('nin ' => $ productId );
605
601
} else {
606
- $ condition = '' ;
602
+ $ condition = array ( ' in ' => $ productId ) ;
607
603
}
608
604
} else {
609
605
if ($ exclude ) {
@@ -613,6 +609,7 @@ public function addIdFilter($productId, $exclude = false)
613
609
}
614
610
}
615
611
$ this ->addFieldToFilter ('entity_id ' , $ condition );
612
+
616
613
return $ this ;
617
614
}
618
615
You can’t perform that action at this time.
0 commit comments