mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-09-03 20:52:58 -05:00
Possible fix for attachment helper
This commit is contained in:
@@ -74,7 +74,10 @@ class AttachmentHelper implements AttachmentHelperInterface
|
|||||||
*/
|
*/
|
||||||
public function saveAttachmentsForModel(Model $model)
|
public function saveAttachmentsForModel(Model $model)
|
||||||
{
|
{
|
||||||
$files = Input::file('attachments');
|
$files = null;
|
||||||
|
if(Input::hasFile('attachments')) {
|
||||||
|
$files = Input::file('attachments');
|
||||||
|
}
|
||||||
|
|
||||||
if (is_array($files)) {
|
if (is_array($files)) {
|
||||||
foreach ($files as $entry) {
|
foreach ($files as $entry) {
|
||||||
|
|||||||
Reference in New Issue
Block a user