Illegal offset type in isset or empty on CValidator.php(184


I am trying the 1.1 beta and am running into what looks like a bug, which is ok for beta but I just wanted to make sure of it.

I am basically creating a new object and am displaying a form which calls CHtml::error multiple time.

When I instantiate the User object without passing anything to the constructor, I get the error. If I pass null or an empty string this works.

It looks like if I pass nothing, the scenario variable that ends up on line 184 of CValidator is an array and is therefore breaking the offset.

My mistake. I had extended the model in 1.0 and it was creating an error.