Function "update" in class.mysql.php causes a warning if $fields is array
A for , submitted by michael-e on 09 November 2009
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#167: Function "update" in class.mysql.php causes a warning if $fields is array
The MySQL::cleanFields()
function is designed to handle an array of values, but it won’t work with a deep (> 1 level) array structure.
This issue is closed.
The function
update
inclass.mysql.php
is designed to work with a$fields
array. But the following line must throw a warning in the log if you actually pass an array:And here it is, fresh from Symphony’s log:
Like the
insert
function, theupdate
function should actually check iffields
is an array and behave accordingly.