aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-06 19:22:29 +0000
committerMario <mario@mariovavti.com>2021-01-06 19:22:29 +0000
commitc7010dac3c74e25eac8855d87d78d892052d3c4e (patch)
treef558578c39e1583154c96952836288a01eb2984f /include/attach.php
parent99bfc3aaa0a54a0e8cac82a7d6d7fc8e49c046dd (diff)
downloadvolse-hubzilla-c7010dac3c74e25eac8855d87d78d892052d3c4e.tar.gz
volse-hubzilla-c7010dac3c74e25eac8855d87d78d892052d3c4e.tar.bz2
volse-hubzilla-c7010dac3c74e25eac8855d87d78d892052d3c4e.zip
simplify attach_folder_select_list()
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/attach.php b/include/attach.php
index b4f697f81..bcb3061f4 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -2987,10 +2987,7 @@ function attach_folder_select_list($channel_id) {
if($r) {
foreach($r as $rv) {
- $x = attach_folder_rpaths($r,$rv);
- if($x) {
- $out[$x[0]] = $x[1];
- }
+ $out[$rv['hash']] = $rv['display_path'];
}
}