소스 검색

images styles generation notice fix

bach 4 년 전
부모
커밋
406d215a04
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/modules/custom/images_styles_gen/src/CreateImagesStyles.php

+ 1 - 1
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']++;