From 9e9971f46401f0230cf7b3de1184cc33fc758bf5 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 16 Sep 2021 13:56:22 +0200 Subject: [PATCH] mvc: vim is doing strange things nowadays wanting tabs over spaces ;( --- src/opnsense/mvc/app/library/OPNsense/Core/Config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opnsense/mvc/app/library/OPNsense/Core/Config.php b/src/opnsense/mvc/app/library/OPNsense/Core/Config.php index 58d1ac5ed..35a12045f 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Core/Config.php +++ b/src/opnsense/mvc/app/library/OPNsense/Core/Config.php @@ -152,7 +152,7 @@ class Config extends Singleton if (!isset($result["${xmlNodeName}@attributes"])) { $result["${xmlNodeName}@attributes"] = []; } - $result["${xmlNodeName}@attributes"][$AttrKey] = $AttrValue->__toString(); + $result["${xmlNodeName}@attributes"][$AttrKey] = $AttrValue->__toString(); } } } @@ -213,7 +213,7 @@ class Config extends Singleton $node->addAttribute($attrKey, $attrValue); } continue; - } elseif (strstr($itemKey , '@attributes') !== false) { + } elseif (strstr($itemKey, '@attributes') !== false) { $origname = str_replace('@attributes', '', $itemKey); if (count($node->$origname)) { // copy xml attributes