*/
public function getData(Option $option, $newValue) {
$this->createUploadHandler($option);
+ if ($this->uploadHandlers[$option->optionName] === null) {
+ return '';
+ }
$files = $this->uploadHandlers[$option->optionName]->getFiles();
$file = reset($files);
*/
public function validate(Option $option, $newValue) {
$this->createUploadHandler($option);
+ if ($this->uploadHandlers[$option->optionName] === null) {
+ return;
+ }
$files = $this->uploadHandlers[$option->optionName]->getFiles();
$file = reset($files);