diff --git a/plugins/netsync/Netsync.php b/plugins/netsync/Netsync.php index 6871836..633af00 100644 --- a/plugins/netsync/Netsync.php +++ b/plugins/netsync/Netsync.php @@ -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) {