mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	conditions cleanup
This commit is contained in:
		@ -728,7 +728,7 @@ class Html
 | 
			
		||||
		if (!isset($options['size'])) {
 | 
			
		||||
			$options['size'] = 4;
 | 
			
		||||
		}
 | 
			
		||||
		if (isset($options['multiple']) && $options['multiple'] && substr($name, -2) !== '[]') {
 | 
			
		||||
		if (!empty($options['multiple']) && substr($name, -2) !== '[]') {
 | 
			
		||||
			$name .= '[]';
 | 
			
		||||
		}
 | 
			
		||||
		$options['name'] = $name;
 | 
			
		||||
 | 
			
		||||
@ -64,7 +64,7 @@ class ActiveForm extends Widget
 | 
			
		||||
			$models = array($models);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		$showAll = isset($options['showAll']) && $options['showAll'];
 | 
			
		||||
		$showAll = !empty($options['showAll']);
 | 
			
		||||
		$lines = array();
 | 
			
		||||
		/** @var $model Model */
 | 
			
		||||
		foreach ($models as $model) {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user