From 89c026924bab191d668f9bd85152de9925f55fa7 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 6 Aug 2016 14:40:23 +0200 Subject: fix /cloud upload for images --- include/attach.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/attach.php b/include/attach.php index 511f1b586..e15f08bd4 100644 --- a/include/attach.php +++ b/include/attach.php @@ -578,7 +578,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { $pathname = filepath_macro($album); } } - else { + if(! $pathname) { $pathname = filepath_macro($upload_path); } -- cgit v1.2.3