diff options
author | friendica <info@friendica.com> | 2013-02-14 17:39:16 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-14 17:39:16 -0800 |
commit | 9784536ff90d2bda997088fd05c39247e44f52b4 (patch) | |
tree | f7596a2cfff56342232c0970d3d6486a5eb8fb9a /include/identity.php | |
parent | d6db8513e8857c9cf7b725da125b75b80ec78315 (diff) | |
download | volse-hubzilla-9784536ff90d2bda997088fd05c39247e44f52b4.tar.gz volse-hubzilla-9784536ff90d2bda997088fd05c39247e44f52b4.tar.bz2 volse-hubzilla-9784536ff90d2bda997088fd05c39247e44f52b4.zip |
more groundwork for channel import
Diffstat (limited to 'include/identity.php')
-rw-r--r-- | include/identity.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php index 9bb4d09fa..9f8bc0ab0 100644 --- a/include/identity.php +++ b/include/identity.php @@ -89,6 +89,10 @@ function create_identity($arr) { $primary = true; + if(array_key_exists('primary', $arr)) + $primary = intval($arr['primary']); + + $r = q("insert into channel ( channel_account_id, channel_primary, channel_name, channel_address, channel_guid, channel_guid_sig, channel_hash, channel_prvkey, channel_pubkey, channel_pageflags ) |