From f5efffcf94a02bda53a2e66bb2f29e665effec5c Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 2 Aug 2023 09:49:38 +0200 Subject: [PATCH] unbound: migration of empty nodes failed PR: https://forum.opnsense.org/index.php?topic=35134.0 --- .../mvc/app/models/OPNsense/Unbound/Migrations/M1_0_5.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/models/OPNsense/Unbound/Migrations/M1_0_5.php b/src/opnsense/mvc/app/models/OPNsense/Unbound/Migrations/M1_0_5.php index 835e7fc5f..793b19863 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Unbound/Migrations/M1_0_5.php +++ b/src/opnsense/mvc/app/models/OPNsense/Unbound/Migrations/M1_0_5.php @@ -46,7 +46,7 @@ class M1_0_5 extends BaseModelMigration $new[$key] = empty($config->unbound->$key) ? 0 : 1; continue; } - $new[$key] = $config->unbound->$key; + $new[$key] = (string)$config->unbound->$key; } }