From d5af5028baa5e48958af2a44b837177bff30248a Mon Sep 17 00:00:00 2001 From: kirillius Date: Fri, 10 Jan 2025 11:40:59 +0300 Subject: [PATCH] hotfix save networks --- plugins/netsync/Netsync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {