3 users online. Create an account or sign in to join them.Users
A for , submitted by michael-e on 09 November 2009
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
The function update in class.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:
2009/11/08 23:47:24 > WARNING: 2 - mysql_real_escape_string() expects parameter 1 to be string, array given in file /Users/me/Sites/dev/me/email-newsletters/symphony/lib/toolkit/class.mysql.php on line 139
Like the insert function, the update function should actually check if fields is an array and behave accordingly.
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.
Contact the team
Symphony • Open Source XSLT CMS