aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/attach.php2
1 files changed, 1 insertions, 1 deletions
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);
}