Skip to content

Firefly III: a personal finances manager

Possible fix for attachment helper

James Cole12f4305691bb
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) {