3 users online. Create an account or sign in to join them.Users

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 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:

$this->cleanFields($fields);

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details