Here's a patch that I have been using for quite a long time in my smarty
installations. The patch is about converting the selected parameter of the
html_options function to string, if the selected parameter is an object.
The current way of operation is to typecast it to an array, which returns
the properties of the object (yes, I have to admit that this also makes
sense sometimes, but in my experience casting it to string is way
more useful, and more developer-friendly).
This patch does break compatibility, this is one reason why I never
submitted it for smarty2, perhaps now for smarty3 you guys may consider
the pros and cons of it, and apply if you'd like. Or others in the list
may also express their opinions about it.
Regards,
Marton