aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-19 19:43:00 -0700
committerzotlabs <mike@macgirvin.com>2017-03-19 19:43:00 -0700
commita12a614e7e6c7d7b5e789d9c69396be55925c951 (patch)
tree4a52dfd3bbb6891213fb4b0611dbcc2d003d2acb /include
parentf746418fda3f29f4635a26c744990911e8fb6309 (diff)
downloadvolse-hubzilla-a12a614e7e6c7d7b5e789d9c69396be55925c951.tar.gz
volse-hubzilla-a12a614e7e6c7d7b5e789d9c69396be55925c951.tar.bz2
volse-hubzilla-a12a614e7e6c7d7b5e789d9c69396be55925c951.zip
attach_folder_rpaths() providing incorrect results
Diffstat (limited to 'include')
-rw-r--r--include/attach.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/attach.php b/include/attach.php
index cbcdbc399..d7c1b9da4 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -2243,11 +2243,12 @@ function attach_folder_select_list($channel_id) {
if($r) {
foreach($r as $rv) {
$x = attach_folder_rpaths($r,$rv);
- if($x)
+ if($x) {
$out[$x[0]] = $x[1];
+ }
}
}
-
+logger('results: ' . print_r($out,true));
return $out;
}
@@ -2266,7 +2267,6 @@ function attach_folder_rpaths($all_folders,$that_folder) {
continue;
if($selected['hash'] == $parent_hash) {
$path = '/' . $selected['filename'] . $path;
- $current_hash = $selected['hash'];
$parent_hash = $selected['folder'];
$found = true;
break;