1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Issue #3524 XML import/export array issue.

This commit is contained in:
Cameron
2018-11-15 14:20:08 -08:00
parent 747776b66a
commit e0d988aaeb
3 changed files with 7 additions and 12 deletions

View File

@@ -536,13 +536,13 @@ class e_array {
*
* @param array $ArrayData array to be stored
* @param bool|string $mode true = var_export with addedslashes, false = var_export (default), 'json' = json encoded
* @return string
* @return null|string
*/
public function serialize($ArrayData, $mode = false)
{
if (!is_array($ArrayData) || empty($ArrayData))
{
return false;
return null;
}
if($mode === 'json')