aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-08-22 20:20:54 +0200
committerMax Kostikov <max@kostikov.co>2019-08-22 20:20:54 +0200
commit58d7c7f6aed50d8b40334c011490b1b26eee4ede (patch)
tree5612224a1ce66c249767db192cc45c1e34886f86 /include/import.php
parentcf9ef615c96d0b74ad4d676f48cb67e41a56f5d5 (diff)
downloadvolse-hubzilla-58d7c7f6aed50d8b40334c011490b1b26eee4ede.tar.gz
volse-hubzilla-58d7c7f6aed50d8b40334c011490b1b26eee4ede.tar.bz2
volse-hubzilla-58d7c7f6aed50d8b40334c011490b1b26eee4ede.zip
Fix attach permissions sync for clonned channel
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/import.php b/include/import.php
index 1d3b7c035..d3e8f7091 100644
--- a/include/import.php
+++ b/include/import.php
@@ -1190,9 +1190,9 @@ function sync_files($channel, $files) {
logger('sync_files duplicate check: attach_by_hash() returned ' . print_r($x,true), LOGGER_DEBUG);
if($x['success']) {
- $orig_attach = $x[0];
+ $orig_attach = $x['data'];
$attach_exists = true;
- $attach_id = $x[0]['id'];
+ $attach_id = $orig_attach['id'];
}
$newfname = 'store/' . $channel['channel_address'] . '/' . get_attach_binname($att['content']);