fix wrong string concatenation

This commit is contained in:
David Pareja Rodriguez 2023-03-01 08:44:06 +01:00
parent c2d6e9adcf
commit 2a706411cf

View File

@ -207,11 +207,11 @@ class FileUpload
setEventMessage('If $fk_element = null or $element = null you must specify upload_dir on $options', 'errors');
throw new Exception('If $fk_element = null or $element = null you must specify upload_dir on $options');
} elseif (is_dir($this->options['upload_dir'])) {
setEventMessage('The directory '$this->options['upload_dir'].' doesn\'t exists', 'errors');
throw new Exception('The directory '$this->options['upload_dir'].' doesn\'t exists');
setEventMessage('The directory '.$this->options['upload_dir'].' doesn\'t exists', 'errors');
throw new Exception('The directory '.$this->options['upload_dir'].' doesn\'t exists');
} elseif (is_writable($this->options['upload_dir'])) {
setEventMessage('The directory '$this->options['upload_dir'].' is not writable', 'errors');
throw new Exception('The directory '$this->options['upload_dir'].' is not writable');
setEventMessage('The directory '.$this->options['upload_dir'].' is not writable', 'errors');
throw new Exception('The directory '.$this->options['upload_dir'].' is not writable');
}
}
}