* add is_string judge for js::set method.

This commit is contained in:
chencongzhi520@gmail.com
2013-03-08 05:23:50 +00:00
parent 990e5fdedd
commit a2616f7ca3

View File

@@ -786,7 +786,7 @@ EOT;
static public function set($key, $value)
{
$js = self::start(false);
if(is_array($value) or is_object($value))
if(is_array($value) or is_object($value) or is_string($value))
{
$value = json_encode($value);
$js .= "$key = $value";