CMS MADE SIMPLE FORGE

CGExtensions

 

[#12264] cge_array > strlen breaks script on null value

avatar
Created By: Mathieu Muths (airelibre) (airelibre)
Date Submitted: Thu Feb 27 11:16:52 -0500 2020

Assigned To: Robert Campbell (calguy1000)
Version: 1.65.1
CMSMS Version: 2.3-beta7
Severity: None
Resolution: None
State: Open
Summary:
cge_array > strlen breaks script on null value
Detailed Description:
Hi,

when I try to export users from FEU, PHP complains about class.cge_array /
method "implode_quoted" / line 352

When there are sometimes NULL values, the script breaks and the export doesn't
work

Before :
if( strlen($values[$i]) != 0 ) $values[$i] = $quote.$values[$i].$quote;

After :
if (($values[$i] != null) && (strlen($values[$i]) != 0)) {
                $values[$i] = $quote.$values[$i].$quote;
            }

Now it exports in FEU. I hope this was the right solution, thanks


History