aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-10-04 14:08:39 +0200
committerMario Vavti <mario@mariovavti.com>2021-10-04 14:08:39 +0200
commitc2c5730d00927a2e246a8c7e55450ea81d25a1a0 (patch)
tree11a24d7a7f8fef331a622ac290cb230a862fff7b /include/import.php
parent21a6dffd5f24b0468e17e9e22fb795dff1020472 (diff)
downloadvolse-hubzilla-c2c5730d00927a2e246a8c7e55450ea81d25a1a0.tar.gz
volse-hubzilla-c2c5730d00927a2e246a8c7e55450ea81d25a1a0.tar.bz2
volse-hubzilla-c2c5730d00927a2e246a8c7e55450ea81d25a1a0.zip
more app sync fixes
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/import.php b/include/import.php
index c986eeaef..88d29a46d 100644
--- a/include/import.php
+++ b/include/import.php
@@ -556,11 +556,11 @@ function import_sysapps($channel, $apps) {
$term = ((array_key_exists('term',$app) && is_array($app['term'])) ? $app['term'] : null);
foreach ($sysapps as $sysapp) {
- if ($app['app_id'] === hash('whirlpool',$sysapp['app_name'])) {
+ if ($app['app_id'] === hash('whirlpool', $sysapp['name'])) {
// install this app on this server
$newapp = $sysapp;
$newapp['uid'] = $channel['channel_id'];
- $newapp['guid'] = hash('whirlpool',$newapp['name']);
+ $newapp['guid'] = hash('whirlpool', $newapp['name']);
$installed = q("select id from app where app_id = '%s' and app_channel = %d limit 1",
dbesc($newapp['guid']),
@@ -572,9 +572,9 @@ function import_sysapps($channel, $apps) {
$newapp['system'] = 1;
if ($term) {
- $newapp['categories'] = array_elm_to_str($term,'term');
+ $newapp['categories'] = array_elm_to_str($term, 'term');
}
- Apps::app_install($channel['channel_id'],$newapp);
+ Apps::app_install($channel['channel_id'], $newapp);
}
}
}