aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Content_importer.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-10-01 21:52:30 +0200
committerMario Vavti <mario@mariovavti.com>2021-10-01 21:52:30 +0200
commit47e83a15c1168cfd8ebc7905db853f3db6b3b31b (patch)
tree2cd700af6107995b2a35058ea7256bc30bf4266d /Zotlabs/Daemon/Content_importer.php
parent597e847a3b245140042f18fa34c0b25ef8445256 (diff)
downloadvolse-hubzilla-47e83a15c1168cfd8ebc7905db853f3db6b3b31b.tar.gz
volse-hubzilla-47e83a15c1168cfd8ebc7905db853f3db6b3b31b.tar.bz2
volse-hubzilla-47e83a15c1168cfd8ebc7905db853f3db6b3b31b.zip
import_progress: deal with the situation where items/files are being imported but there are none to import
Diffstat (limited to 'Zotlabs/Daemon/Content_importer.php')
-rw-r--r--Zotlabs/Daemon/Content_importer.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Content_importer.php b/Zotlabs/Daemon/Content_importer.php
index 4a07b4cf4..67f1c8e80 100644
--- a/Zotlabs/Daemon/Content_importer.php
+++ b/Zotlabs/Daemon/Content_importer.php
@@ -48,11 +48,9 @@ class Content_importer {
}
$j = json_decode($x['body'],true);
- if (! $j) {
- return;
- }
if(! is_array($j['item']) || ! count($j['item'])) {
+ PConfig::Set($channel['channel_id'], 'import', 'content_completed', 1);
return;
}