aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/guiedit.php7
1 files changed, 6 insertions, 1 deletions
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 @@
<?php if (!defined('PmWiki')) exit();
-/* Copyright 2004-2022 Patrick R. Michaud (pmichaud@pobox.com)
+/* Copyright 2004-2024 Patrick R. Michaud (pmichaud@pobox.com)
This file is part of PmWiki; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or
@@ -67,6 +67,11 @@ if(IsEnabled($EnableGUIButtons,0)) {
function GUIButtonCode() {
global $GUIButtons;
extract($GLOBALS["MarkupToHTML"]); # get $pagename
+
+ foreach($GUIButtons as $k=>&$a) {
+ if (!$a || count($a)<4 ) unset($GUIButtons[$k]);
+ else $a[0] = floatval($a[0]);
+ }
usort($GUIButtons, 'cb_gbcompare');