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

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix metadata breaking json when no searchable is set. Fix #973
  • Loading branch information
cdujeu committed Oct 26, 2015
1 parent 9be5485 commit 337ae2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/meta.user/class.UserMetaManager.php
Expand Up @@ -151,7 +151,7 @@ public function initMeta($accessDriver)
if (count($searchablesRenderers)) {
$metaV .= ',"metaColumnsRenderers":'.json_encode($searchablesRenderers);
}
if (!empty($v) && trim($v) != "{}") {
if (!empty($v) && trim($v) != "{}" && !empty($metaV)) {
$v = str_replace("}", ", ".$metaV."}", $v);
} else {
$v = "{".$metaV."}";
Expand Down

0 comments on commit 337ae2b

Please sign in to comment.