use hubloc_store_lowlevel to ensure all hubloc columns are initialised
(cherry picked from commit 52be5c1660
)
This commit is contained in:
parent
78c6f40093
commit
ed97800c80
@ -234,7 +234,7 @@ function import_hublocs($channel, $hublocs, $seize, $moving = false) {
|
|||||||
|
|
||||||
if(($x = zot_gethub($arr,false)) === false) {
|
if(($x = zot_gethub($arr,false)) === false) {
|
||||||
unset($hubloc['hubloc_id']);
|
unset($hubloc['hubloc_id']);
|
||||||
create_table_from_array('hubloc', $hubloc);
|
hubloc_store_lowlevel($hubloc);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
q("UPDATE hubloc set hubloc_primary = %d, hubloc_deleted = %d where hubloc_id = %d",
|
q("UPDATE hubloc set hubloc_primary = %d, hubloc_deleted = %d where hubloc_id = %d",
|
||||||
|
Reference in New Issue
Block a user