[Solar-talk] Possible Solar_Sql_Row extends Solar_Struct toArray() bug?
Paul M Jones
pmjones at solarphp.com
Thu Sep 7 18:18:14 PDT 2006
On Sep 7, 2006, at 1:24 PM, Jeremy Cook wrote:
> I made a mistake:
> $this->_data = $this->_config['data']; // Forgot the
> (array) type
> Should be:
> $this->_data = (array) $this->_config['data']; //
> Explicit type.
>
> My guess is you would have caught it anyway if you did copy and
> paste my code, but I want to make sure fixing one bug does not
> create another.
I made a different error, in that I cast to array when it's known to
be an array. Other than that I think I got it. ;-)
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list