diff options
author | zotlabs <mike@macgirvin.com> | 2018-11-05 19:52:30 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-11-05 19:52:30 -0800 |
commit | 3b9aedec5f8445d723e41835ccba6d0add8068c8 (patch) | |
tree | 163323030e334fcc5605ffda5fe9048dd22d4745 /include/xchan.php | |
parent | fabcf841c9b4a360e2e496d04775e2ef594cb0e3 (diff) | |
download | volse-hubzilla-3b9aedec5f8445d723e41835ccba6d0add8068c8.tar.gz volse-hubzilla-3b9aedec5f8445d723e41835ccba6d0add8068c8.tar.bz2 volse-hubzilla-3b9aedec5f8445d723e41835ccba6d0add8068c8.zip |
populate new fields
Diffstat (limited to 'include/xchan.php')
-rw-r--r-- | include/xchan.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xchan.php b/include/xchan.php index eb5f1b4a3..5516d046f 100644 --- a/include/xchan.php +++ b/include/xchan.php @@ -5,8 +5,14 @@ use Zotlabs\Zot6\HTTPSig; function xchan_store_lowlevel($arr) { + if(! $arr['xchan_hash']) { + logger('No xchan_hash'); + return false; + } + $store = [ 'xchan_hash' => ((array_key_exists('xchan_hash',$arr)) ? $arr['xchan_hash'] : ''), + 'xchan_portable_id' => ((array_key_exists('xchan_portable_id',$arr)) ? $arr['xchan_portable_id'] : ''), 'xchan_guid' => ((array_key_exists('xchan_guid',$arr)) ? $arr['xchan_guid'] : ''), 'xchan_guid_sig' => ((array_key_exists('xchan_guid_sig',$arr)) ? $arr['xchan_guid_sig'] : ''), 'xchan_pubkey' => ((array_key_exists('xchan_pubkey',$arr)) ? $arr['xchan_pubkey'] : ''), |