diff options
author | Mario <mario@mariovavti.com> | 2023-08-15 12:05:50 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-08-27 19:58:55 +0200 |
commit | 446e842904e04e9b8d74f4f4f2c5c238316f8615 (patch) | |
tree | d198d2532206b9e9db35e0ca6b7300a4a19b8247 /include | |
parent | ba153e2c184c3ec1e957baea50af5741fe7c9b21 (diff) | |
download | volse-hubzilla-446e842904e04e9b8d74f4f4f2c5c238316f8615.tar.gz volse-hubzilla-446e842904e04e9b8d74f4f4f2c5c238316f8615.tar.bz2 volse-hubzilla-446e842904e04e9b8d74f4f4f2c5c238316f8615.zip |
make sure that we allow "0" as pathname
(cherry picked from commit be19b7503105955b58c85dbec65c02626c9e5000)
Diffstat (limited to 'include')
-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 3060295b9..9baebe2a0 100644 --- a/include/attach.php +++ b/include/attach.php @@ -691,7 +691,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { $type = $gis['mime']; } - $pathname = ''; + $pathname = null; if($source === 'photos') { if($newalbum) { @@ -708,7 +708,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { $pathname = find_path_by_hash($channel['channel_id'], $arr['folder']); } - if(! $pathname) { + if($pathname === null) { $pathname = filepath_macro($upload_path); } |