Skip to content

Commit 03654f8

Browse files
committed
Fix unit test
1 parent 94fb923 commit 03654f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ private function isGroupInFilter($groupId): bool
807807
private function isGroupInExcludeFilter($groupId): bool
808808
{
809809
$excludeGroup = $this->_request->getParam('exclude-group', []);
810-
return in_array($groupId, $excludeGroup);
810+
return is_array($excludeGroup) && in_array($groupId, $excludeGroup);
811811
}
812812

813813
/**

0 commit comments

Comments
 (0)