Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 268428b

Browse files
committed
UserMetaManager: check metadata is not empty.
(cherry picked from commit ac99bf4)
1 parent b5f0b32 commit 268428b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/plugins/meta.user/class.UserMetaManager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ public function extractMeta(&$ajxpNode, $contextNode = false, $details = false)
306306
// @todo : Should be UTF8-IZED at output only !!??
307307
// array_map(array("SystemTextEncoding", "toUTF8"), $metadata);
308308
}
309+
if(empty($metadata)) $metadata = array();
309310
$ajxpNode->mergeMetadata($metadata);
310311

311312
}

0 commit comments

Comments
 (0)