use hubloc_store_lowlevel to ensure all hubloc columns are initialised

(cherry picked from commit 52be5c1660)
This commit is contained in:
zotlabs 2018-10-06 21:47:40 +00:00 committed by Mario
parent 78c6f40093
commit ed97800c80

View File

@ -234,7 +234,7 @@ function import_hublocs($channel, $hublocs, $seize, $moving = false) {
if(($x = zot_gethub($arr,false)) === false) {
unset($hubloc['hubloc_id']);
create_table_from_array('hubloc', $hubloc);
hubloc_store_lowlevel($hubloc);
}
else {
q("UPDATE hubloc set hubloc_primary = %d, hubloc_deleted = %d where hubloc_id = %d",