diff options
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php index f3fb12293..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); } @@ -1977,4 +1977,4 @@ function get_filename_by_cloudname($cloudname, $channel, $storepath) { } } return null; -}
\ No newline at end of file +} |