summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index e5c0b25..45617e8 100644
--- a/itjs.class
+++ b/itjs.class
@@ -67,7 +67,7 @@ function encode($values)
if (!is_array($value))
{
- $quote = (strval(intval($value)) == strval($value)) ? "" : '"';
+ $quote = (strval(intval($value)) === strval($value)) ? "" : '"';
$result .= $quote . strtr($value, array("\0" => '\\0', '"' => '\\"', "</"=>"<\\/", "\n" => '\\n', "\r" => '\\r', "\t" => '\\t', "\\" => '\\\\')) . $quote;
}
else