Possible fix for attachment helper

This commit is contained in:
James Cole 2016-02-16 13:25:03 +01:00
parent 56cbc7683e
commit 12f4305691

View File

@ -74,7 +74,10 @@ class AttachmentHelper implements AttachmentHelperInterface
*/
public function saveAttachmentsForModel(Model $model)
{
$files = Input::file('attachments');
$files = null;
if(Input::hasFile('attachments')) {
$files = Input::file('attachments');
}
if (is_array($files)) {
foreach ($files as $entry) {