diff options
author | friendica <info@friendica.com> | 2013-02-19 22:55:34 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-19 22:55:34 -0800 |
commit | 3ba267d0c06bb4a3982e3d62f1d592be27e8fa17 (patch) | |
tree | 78e72669f8b0b718aa5ad1b54993b697586f4ad9 /mod | |
parent | 23718e5e28a7456b53ac384b5a2a0c3c6a1e99d5 (diff) | |
download | volse-hubzilla-3ba267d0c06bb4a3982e3d62f1d592be27e8fa17.tar.gz volse-hubzilla-3ba267d0c06bb4a3982e3d62f1d592be27e8fa17.tar.bz2 volse-hubzilla-3ba267d0c06bb4a3982e3d62f1d592be27e8fa17.zip |
unset auto increment keys on import
Diffstat (limited to 'mod')
-rw-r--r-- | mod/import.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/import.php b/mod/import.php index a2b5132db..f35ca149b 100644 --- a/mod/import.php +++ b/mod/import.php @@ -121,6 +121,7 @@ function import_post(&$a) { $profiles = $data['profile']; if($profiles) { foreach($profiles as $profile) { + unset($profile['id']); $profile['aid'] = get_account_id(); $profile['uid'] = $channel['channel_id']; @@ -154,6 +155,7 @@ function import_post(&$a) { $hubloc['hubloc_flags'] = ($hubloc['hubloc_flags'] ^ HUBLOC_FLAGS_PRIMARY); if(! zot_gethub($arr)) { + unset($hubloc['hubloc_id']); dbesc_array($hubloc); $r = dbq("INSERT INTO hubloc (`" @@ -236,6 +238,7 @@ function import_post(&$a) { $abooks = $data['abook']; if($abooks) { foreach($abooks as $abook) { + unset($abook['abook_id']); $abook['abook_account'] = get_account_id(); $abook['abook_channel'] = $channel['channel_id']; dbesc_array($abook); |