fix isArray error in validate-operator-tweaks.js

This commit is contained in:
zefie
2023-08-26 17:00:40 -04:00
parent a2a38afab0
commit 772e3b9ba7
2 changed files with 4 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ if (auth === true) {
var v = request_headers.query[k];
// enable_multi_query may send ["false", "on"] for checkboxes due to webtvism
if (isArray(v)) v = v[(v.length - 1)];
if (util.isArray(v)) v = v[(v.length - 1)];
// convert numbers back to int before writing to config
if (!isNaN(parseInt(v))) v = parseInt(v);