From 37fef914d9e80ec8b306ce727a831555de8c98b3 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Wed, 22 Jul 2020 06:35:12 +0000 Subject: [PATCH] Add checking for null for other images. #424 --- src/Service/JobOrderHandler/CMBJobOrderHandler.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Service/JobOrderHandler/CMBJobOrderHandler.php b/src/Service/JobOrderHandler/CMBJobOrderHandler.php index 42f1b49b..85ed87d7 100644 --- a/src/Service/JobOrderHandler/CMBJobOrderHandler.php +++ b/src/Service/JobOrderHandler/CMBJobOrderHandler.php @@ -1531,9 +1531,12 @@ class CMBJobOrderHandler implements JobOrderHandlerInterface if ($img_4 != null) $pic_array['image_4'] = $img_4; - foreach ($other_images as $img) + if ($other_images != null) { - $pic_array['other_images'][] = $img; + foreach ($other_images as $img) + { + $pic_array['other_images'][] = $img; + } } $params['signature'] = $cust_signature;