lfapi
changeset 23:c264e566a2d2
Changed member_disabled to member_active
author | bsw |
---|---|
date | Sun Nov 06 19:54:33 2011 +0100 (2011-11-06) |
parents | fef5d8aad4aa |
children | 65a99dd00b26 |
files | lfapi/general_params.js |
line diff
1.1 --- a/lfapi/general_params.js Sun Nov 06 19:46:27 2011 +0100 1.2 +++ b/lfapi/general_params.js Sun Nov 06 19:54:33 2011 +0100 1.3 @@ -30,10 +30,10 @@ 1.4 if (member_id) { 1.5 query.addWhere(['"' + table_name + '"."id" IN (??)', member_id.split(',')]); 1.6 }; 1.7 - if (member_disabled == 'only') { 1.8 + if (member_active == '1') { 1.9 + query.addWhere('"' + table_name + '"."active" = TRUE OR "' + table_name + '"."active" ISNULL'); 1.10 + } else if (member_active == '0') { 1.11 query.addWhere('"' + table_name + '"."active" = FALSE'); 1.12 - } else if (member_disabled != 'include') { 1.13 - query.addWhere('"' + table_name + '"."active" = TRUE OR "' + table_name + '"."active" ISNULL'); 1.14 }; 1.15 if (member_search) { 1.16 query.addWhere(['"' + table_name + '"."text_search_data" @@ text_search_query(?)', member_search]);