JaquelineBrandao / yii

Automatically exported from code.google.com/p/yii
0 stars 0 forks source link

[ENHANCEMENT] CHtml::renderAttributes should handle null $htmlOptions #931

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just find this severely annoying and contrary to the way many libraries 
work, so I ask that you adjust this method to handle a null value as well as 
an empty array. 

CHtml.php, line 1842:

-       if($htmlOptions===array())
+       if($htmlOptions===array()||$htmlOptions===null)

Original issue reported on code.google.com by jerryab...@gmail.com on 14 Feb 2010 at 4:06

GoogleCodeExporter commented 9 years ago
It's your responsibility to make sure the parameter is an array, as stated by 
the API.

Original comment by qiang.xue on 14 Feb 2010 at 7:21