=== array() => empty()

This commit is contained in:
Alexander Kochetov
2013-05-07 19:51:29 +04:00
parent 901dabc301
commit d7df7053e0
11 changed files with 25 additions and 23 deletions

View File

@ -34,7 +34,7 @@ class Json
$expressions = array();
$value = static::processData($value, $expressions);
$json = json_encode($value, $options);
return $expressions === array() ? $json : strtr($json, $expressions);
return empty($expressions) ? $json : strtr($json, $expressions);
}
/**