summaryrefslogtreecommitdiff
path: root/program/include/rcube_shared.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-29 12:39:12 +0000
committeralecpl <alec@alec.pl>2008-10-29 12:39:12 +0000
commit8498dce502f9265278f7eb2b01ae4e65187a1a84 (patch)
treedc96a6e2aefe106fe105f1d1d19994f74f1ad1e0 /program/include/rcube_shared.inc
parentfee8c6ceab0f66d83e5c62eae44ee7c624847972 (diff)
- Fix problem with numeric folder names (#1485527)
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r--program/include/rcube_shared.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 26de5b45c..9f8bc4f04 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -179,7 +179,7 @@ function json_serialize($var)
return $brackets{0} . implode(',', $pairs) . $brackets{1};
}
}
- else if (is_numeric($var) && strval(intval($var)) === strval($var))
+ else if (!is_string($var) && strval(intval($var)) === strval($var))
return $var;
else if (is_bool($var))
return $var ? '1' : '0';