Fix type error in Woo orders data generator script
[MAILPOET-5014]
This commit is contained in:
committed by
Aschepikov
parent
17d3f66316
commit
f6d80b6e8b
@ -237,7 +237,7 @@ class WooCommercePastRevenues implements Generator {
|
||||
$openedCount = floor(count($subscriberReceivedEmails) / rand(2, 5));
|
||||
$emailsToClick = array_intersect_key(
|
||||
$subscriberReceivedEmails,
|
||||
array_flip(array_rand($subscriberReceivedEmails, $openedCount))
|
||||
array_flip(array_rand($subscriberReceivedEmails, intval($openedCount)))
|
||||
);
|
||||
// Click and open selected emails
|
||||
foreach ($emailsToClick as $email) {
|
||||
|
Reference in New Issue
Block a user