From 12f4305691bb736e7597080e0b258c0414e7dcfb Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 16 Feb 2016 13:25:03 +0100 Subject: [PATCH] Possible fix for attachment helper --- app/Helpers/Attachments/AttachmentHelper.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Helpers/Attachments/AttachmentHelper.php b/app/Helpers/Attachments/AttachmentHelper.php index 69ff3bf376..4d0a506a54 100644 --- a/app/Helpers/Attachments/AttachmentHelper.php +++ b/app/Helpers/Attachments/AttachmentHelper.php @@ -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) {