[mapguide-commits] r10109 - branches/4.0/MgDev/Web/src/mapadmin
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Sep 17 03:12:21 PDT 2024
Author: jng
Date: 2024-09-17 03:12:17 -0700 (Tue, 17 Sep 2024)
New Revision: 10109
Modified:
branches/4.0/MgDev/Web/src/mapadmin/resizablepagecomponents.php
Log:
Fix OutputSettingsJsArray in resizablepagecomponents.php to work in the PHP 8.1 world
Fixes #2884
Modified: branches/4.0/MgDev/Web/src/mapadmin/resizablepagecomponents.php
===================================================================
--- branches/4.0/MgDev/Web/src/mapadmin/resizablepagecomponents.php 2024-09-05 05:41:29 UTC (rev 10108)
+++ branches/4.0/MgDev/Web/src/mapadmin/resizablepagecomponents.php 2024-09-17 10:12:17 UTC (rev 10109)
@@ -2342,7 +2342,7 @@
public function OutputSettingsJsArray($recentSettings)
{
- $settingsCount = count($recentSettings);
+ $settingsCount = $recentSettings != NULL ? count($recentSettings) : 0;
//if there's no setting, return
if($settingsCount <= 0)
More information about the mapguide-commits
mailing list