File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,8 @@ public function getMetaDescription()
395395 */
396396 public function isVisibleOnStore ($ storeId )
397397 {
398- return $ this ->getIsActive () && array_intersect ([0 , $ storeId ], $ this ->getStoreIds ());
398+ return $ this ->getIsActive ()
399+ && (null === $ storeId || array_intersect ([0 , $ storeId ], $ this ->getStoreIds ()));
399400 }
400401
401402 /**
Original file line number Diff line number Diff line change @@ -801,7 +801,7 @@ public function isVisibleOnStore($storeId)
801801 {
802802 return $ this ->getIsActive ()
803803 && $ this ->getData ('publish_time ' ) <= $ this ->getResource ()->getDate ()->gmtDate ()
804- && array_intersect ([0 , $ storeId ], $ this ->getStoreIds ());
804+ && ( null === $ storeId || array_intersect ([0 , $ storeId ], $ this ->getStoreIds () ));
805805 }
806806
807807 /**
You can’t perform that action at this time.
0 commit comments