Page 1 of 1

Bug in /libraries/joomla/database/database/mysql.php

Posted: Fri Sep 09, 2011 12:25 am
by pkwin
As a result of an application error in a bespoke component, I was trying to insert a new record into a table where a record with the same id already existed. As a result, I got:
PHP Notice: Undefined variable: values on line 540.
When I looked at the function, I found that the two arrays $fields and $values are populated within the function but only fields is initialised. I inserted $values=array(); at line 529 and the issue was resolved.
Regards
Phil

using v1.5.23

Re: Bug in /libraries/joomla/database/database/mysql.php

Posted: Fri Sep 16, 2011 8:59 am
by samaras
Just encounted the same error. Thanks.