From 46c04e185294bb225785929476d4a4f16cc6d34a Mon Sep 17 00:00:00 2001 From: petko Date: Sun, 28 Apr 2024 07:57:28 +0000 Subject: $GUIButtons remove invalid elements. git-svn-id: svn://pmwiki.org/pmwiki/trunk@4704 524c5546-5005-0410-9a3e-e25e191bd360 --- scripts/guiedit.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/guiedit.php b/scripts/guiedit.php index 7af62b70..b8a59c58 100644 --- a/scripts/guiedit.php +++ b/scripts/guiedit.php @@ -1,5 +1,5 @@ &$a) { + if (!$a || count($a)<4 ) unset($GUIButtons[$k]); + else $a[0] = floatval($a[0]); + } usort($GUIButtons, 'cb_gbcompare'); -- cgit v1.2.3