View Issue Details

IDProjectCategoryView StatusLast Update
0020574mantisbtcode cleanuppublic2016-06-12 00:42
ReporterdregadAssigned Todregad 
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version 
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.

UPDATE {user} WHERE id=?
             ^ missing SET clause
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master ccdaf579

2016-02-05 17:57:01

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
mod - core/user_api.php Diff File

Issue History

Date Modified Username Field Change
2016-02-05 18:03 dregad New Issue
2016-02-05 18:03 dregad Assigned To => dregad
2016-02-05 18:03 dregad Status new => assigned
2016-02-05 18:03 dregad Target Version => 1.3.0-rc.2
2016-02-05 18:04 dregad Description Updated View Revisions
2016-02-05 18:27 dregad Changeset attached => MantisBT master ccdaf579
2016-02-05 18:27 dregad Status assigned => resolved
2016-02-05 18:27 dregad Resolution open => fixed
2016-02-05 18:27 dregad Fixed in Version => 1.3.0-rc.2
2016-06-12 00:42 vboctor Status resolved => closed