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

Commit 337ae2b

Browse files
committed
Fix metadata breaking json when no searchable is set. Fix #973
1 parent 9be5485 commit 337ae2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function initMeta($accessDriver)
151151
if (count($searchablesRenderers)) {
152152
$metaV .= ',"metaColumnsRenderers":'.json_encode($searchablesRenderers);
153153
}
154-
if (!empty($v) && trim($v) != "{}") {
154+
if (!empty($v) && trim($v) != "{}" && !empty($metaV)) {
155155
$v = str_replace("}", ", ".$metaV."}", $v);
156156
} else {
157157
$v = "{".$metaV."}";

0 commit comments

Comments
 (0)