diff --git a/src/opnsense/mvc/app/library/OPNsense/Core/Config.php b/src/opnsense/mvc/app/library/OPNsense/Core/Config.php index 66c70da92..2accec957 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Core/Config.php +++ b/src/opnsense/mvc/app/library/OPNsense/Core/Config.php @@ -80,7 +80,7 @@ class Config extends Singleton // probably a safe bet, first key equals 0, last equals the number of keys minus 1. if (empty($arrayData)) { return true; - } elseif ($all_keys[0] == "0" && ($last_key == 1 || $all_keys[$last_key-1] == ($last_key-1))) { + } elseif ($all_keys[0] == "0" && $all_keys[$last_key-1] == ($last_key-1)) { return true; }