attach_folder_rpaths() providing incorrect results
This commit is contained in:
parent
f746418fda
commit
a12a614e7e
@ -2243,11 +2243,12 @@ function attach_folder_select_list($channel_id) {
|
|||||||
if($r) {
|
if($r) {
|
||||||
foreach($r as $rv) {
|
foreach($r as $rv) {
|
||||||
$x = attach_folder_rpaths($r,$rv);
|
$x = attach_folder_rpaths($r,$rv);
|
||||||
if($x)
|
if($x) {
|
||||||
$out[$x[0]] = $x[1];
|
$out[$x[0]] = $x[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
logger('results: ' . print_r($out,true));
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2266,7 +2267,6 @@ function attach_folder_rpaths($all_folders,$that_folder) {
|
|||||||
continue;
|
continue;
|
||||||
if($selected['hash'] == $parent_hash) {
|
if($selected['hash'] == $parent_hash) {
|
||||||
$path = '/' . $selected['filename'] . $path;
|
$path = '/' . $selected['filename'] . $path;
|
||||||
$current_hash = $selected['hash'];
|
|
||||||
$parent_hash = $selected['folder'];
|
$parent_hash = $selected['folder'];
|
||||||
$found = true;
|
$found = true;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user