3 users online. Create an account or sign in to join them.Users
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
updateinclass.mysql.phpis designed to work with a$fieldsarray. 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
insertfunction, theupdatefunction should actually check iffieldsis an array and behave accordingly.