mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	=== array() => empty()
This commit is contained in:
		@ -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);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user