Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Possible fix for attachment helper
James Coledfb595193ad9
diff --git a/app/Helpers/Attachments/AttachmentHelper.php b/app/Helpers/Attachments/AttachmentHelper.phpindex 4d0a506a54..722f07f840 100644--- a/app/Helpers/Attachments/AttachmentHelper.php+++ b/app/Helpers/Attachments/AttachmentHelper.php@@ -10,6 +10,7 @@ use Illuminate\Database\Eloquent\Model;use Illuminate\Support\MessageBag;use Input;use Symfony\Component\HttpFoundation\File\UploadedFile;+use Log;/*** Class AttachmentHelper@@ -75,9 +76,14 @@ class AttachmentHelper implements AttachmentHelperInterfacepublic function saveAttachmentsForModel(Model $model){$files = null;- if(Input::hasFile('attachments')) {- $files = Input::file('attachments');- }+ try {+ if(Input::hasFile('attachments')) {+ $files = Input::file('attachments');+ }+ } catch (Error $e) {+ // Log it, do nothing else.+ Log::error($e->getMessage());+ }if (is_array($files)) {foreach ($files as $entry) {