diff --git a/ps_imageslider.php b/ps_imageslider.php index 2a8c29f..8cd7222 100644 --- a/ps_imageslider.php +++ b/ps_imageslider.php @@ -338,6 +338,9 @@ protected function _postValidation() if (Tools::getValue('image_old_' . $language['id_lang']) != null && !Validate::isFileName(Tools::getValue('image_old_' . $language['id_lang']))) { $errors[] = $this->trans('Invalid filename.', [], 'Modules.Imageslider.Admin'); } + if (!Tools::isSubmit('has_picture') && (!isset($_FILES['image_' . $language['id_lang']]) || empty($_FILES['image_' . $language['id_lang']]['tmp_name']))) { + $errors[] = $this->trans('The image is not set.', [], 'Modules.Imageslider.Admin'); + } } /* Checks title/legend/description for default lang */