hotfix save networks

This commit is contained in:
kirillius 2025-01-10 11:40:59 +03:00
parent 12dde17c01
commit d5af5028ba
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class Netsync extends Plugin
$local_enabled = $wrapper["networks"];
$diff = array_diff($remote_enabled, $local_enabled);
if (count($diff) > 0) {
$wrapper["networks"] = $remote_enabled;
$wrapper["networks"] = array_values($remote_enabled);
$wrapper->save();
}
foreach ($this->context->getRPC()->getPlugins() as $plugin) {