View Issue Details

IDProjectCategoryView StatusLast Update
0020574mantisbtcode cleanuppublic2016-06-12 00:42
Reporterdregad Assigned Todregad  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Target Version1.3.0-rc.2Fixed in Version1.3.0-rc.2 
Summary0020574: user_set_fields() throws an error when called with an empty fields list
Description

When $p_fields is empty, the function generates an invalid SQL query.

<pre>
UPDATE {user} WHERE id=?
^ missing SET clause
</pre>

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master ccdaf579

2016-02-05 12:57

dregad


Details Diff
Fix SQL error in user_set_fields() with empty array

When $p_array is empty, the function generates an invalid SQL query and
throws an error.

Fixes 0020574
Affected Issues
0020574
mod - core/user_api.php Diff File