mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:15:51 +00:00
fix "deleted hubloc after cloning"
This commit is contained in:
parent
79b88c3927
commit
3548305e68
1 changed files with 6 additions and 4 deletions
|
@ -461,10 +461,8 @@ function import_hublocs($channel, $hublocs, $seize)
|
|||
$hubloc['hubloc_primary'] = 0;
|
||||
}
|
||||
|
||||
if (($x = Libzot::gethub($arr)) === false) {
|
||||
unset($hubloc['hubloc_id']);
|
||||
hubloc_store_lowlevel($hubloc);
|
||||
} else {
|
||||
$x = Libzot::gethub($arr);
|
||||
if ($x) {
|
||||
q(
|
||||
"UPDATE hubloc set hubloc_primary = %d, hubloc_deleted = %d where hubloc_id = %d",
|
||||
intval($hubloc['hubloc_primary']),
|
||||
|
@ -472,6 +470,10 @@ function import_hublocs($channel, $hublocs, $seize)
|
|||
intval($x['hubloc_id'])
|
||||
);
|
||||
}
|
||||
else {
|
||||
unset($hubloc['hubloc_id']);
|
||||
hubloc_store_lowlevel($hubloc);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue