diff options
author | robocoder <anthon.pang@gmail.com> | 2011-07-02 19:50:16 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-07-02 19:50:16 +0400 |
commit | 5bdd366a8ba7d8669efb5f95969000b25fef5469 (patch) | |
tree | 6ffe714569623ef3b0e90500bced27f30936950c /libs/upgradephp | |
parent | c8d048d394d497f9a2d565385a8efe5b2065cc81 (diff) |
fixes #2500
git-svn-id: http://dev.piwik.org/svn/trunk@4964 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs/upgradephp')
-rw-r--r-- | libs/upgradephp/upgrade.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/upgradephp/upgrade.php b/libs/upgradephp/upgrade.php index 486bf789d6..c6dee9fe62 100644 --- a/libs/upgradephp/upgrade.php +++ b/libs/upgradephp/upgrade.php @@ -128,7 +128,7 @@ if (!function_exists("json_encode")) { #-- concat invidual entries foreach ((array)$var as $i=>$v) { - $json .= ($json ? "," : "") // comma separators + $json .= ($json !== '' ? "," : "") // comma separators . ($obj ? ("\"$i\":") : "") // assoc prefix . (json_encode($v)); // value } |