From 406d215a04cd8de14f8798d00b21739038363e19 Mon Sep 17 00:00:00 2001 From: bach Date: Wed, 17 Mar 2021 19:24:09 +0100 Subject: [PATCH] images styles generation notice fix --- web/modules/custom/images_styles_gen/src/CreateImagesStyles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/modules/custom/images_styles_gen/src/CreateImagesStyles.php b/web/modules/custom/images_styles_gen/src/CreateImagesStyles.php index 4703553..21d2483 100644 --- a/web/modules/custom/images_styles_gen/src/CreateImagesStyles.php +++ b/web/modules/custom/images_styles_gen/src/CreateImagesStyles.php @@ -8,7 +8,7 @@ namespace Drupal\images_styles_gen; class CreateImagesStyles { public static function createStyles($item, &$context){ - if (!$context['sandbox']['progress']) { + if (!array_key_exists('progress', $context['sandbox'])) { $context['sandbox']['progress'] = 0; } $context['sandbox']['progress']++;