From 9784536ff90d2bda997088fd05c39247e44f52b4 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 14 Feb 2013 17:39:16 -0800 Subject: more groundwork for channel import --- include/identity.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/identity.php') 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 ) -- cgit v1.2.3