MantisBT: master 85f94206

Author Committer Branch Timestamp Parent
dregad dregad master 2015-06-02 00:51 master e9b9b5e8
Affected Issues  0019797: No users listed when using option "Hide inactive" option of manage user page
Changeset

Empty user list when "Hide inactive" option is checked

The refactoring of db_helper_compare_days() function in commit
0a33bdfde4ed437e26b6d6d91423abf290b00041 introduced usage of a new query
parameter; the parameters list is not built in the order expected by the
generated SQL query, causing the boolean value for "enabled" to be used
as a date, and the given timestamp is compared with "enabled" flag.

The SQL now applies the "disabled condition" where clause before the
date filter, so the order of parameters matches.

Also removed useless db_now() parameter assignment at line 249, the
target date parameter has already been added at line 219.

Fixes 0019797

mod - manage_user_page.php Diff File