[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] PluginPivottable: Undefined constant "floatval"

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68d2b2fb9d12a_2c79856c894af@gitlab-sidekiq-low-urgency-cpu-bound-v2-75d8c6998-kxwnd.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
73cbb772 by Marcellin Wabo at 2025-09-23T14:38:53+00:00
[FIX] PluginPivottable: Undefined constant "floatval"
---
* [FIX] PluginPivottable: Undefined constant "floatval"

PHP was treating floatval as a constant instead of a function name.
When passing a function name to array_map() it should be quoted.

See merge request tikiwiki/tiki!8628

- - - - -


1 changed file:

- lib/wiki-plugins/wikiplugin_pivottable.php


Changes:

=====================================
lib/wiki-plugins/wikiplugin_pivottable.php
=====================================
@@ -524,7 +524,7 @@ function wikiplugin_pivottable($data, $params)
 
             if ($validConfig) {
                 $heatmapParams = [
-                    'domain' => array_map(floatval, $params['heatmapDomain']),
+                    'domain' => array_map('floatval', $params['heatmapDomain']),
                     'colors' => $params['heatmapColors']
                 ];
             }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/73cbb77280f3eaba4490207d2e2b10017fc251a9

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/73cbb77280f3eaba4490207d2e2b10017fc251a9
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.