diff options
author | friendica <info@friendica.com> | 2013-04-29 18:47:34 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-04-29 18:47:34 -0700 |
commit | 641e69ef7f3d82a1ebf2047b80d282d5c0c87af9 (patch) | |
tree | 73583e02be2127c0f34aa5e3142e6032e34bf936 /include/zot.php | |
parent | 04170328b12bcaa779d99d89811879cf795a70c6 (diff) | |
download | volse-hubzilla-641e69ef7f3d82a1ebf2047b80d282d5c0c87af9.tar.gz volse-hubzilla-641e69ef7f3d82a1ebf2047b80d282d5c0c87af9.tar.bz2 volse-hubzilla-641e69ef7f3d82a1ebf2047b80d282d5c0c87af9.zip |
fix broken profile syncing
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php index 7a2db3920..e450304bd 100644 --- a/include/zot.php +++ b/include/zot.php @@ -375,14 +375,16 @@ function zot_refresh($them,$channel = null) { else { logger('zot_refresh: importing profile if available'); + logger('zot_refresh: import profile: ' . print_r($x,true), LOGGER_DATA); // Are we a directory server of some kind? $dirmode = intval(get_config('system','directory_mode')); if($dirmode != DIRECTORY_MODE_NORMAL) { - if(array_key_exists('profile',$x) && is_array($x['profile'])) { - import_directory_profile($x['hash'],$x['profile']); + if(array_key_exists('profile',$j) && is_array($j['profile'])) { + import_directory_profile($x['hash'],$j['profile']); } else { + logger('zot_refresh: profile not available - hiding'); // they may have made it private $r = q("delete from xprof where xprof_hash = '%s' limit 1", dbesc($x['hash']) |