*/
public function modelAction ($actionData = false)
{
- $where = '';
+ $where = ' true ';
$filterPending = false;
$filterArchived = false;
$filterName = false;
if (isset($_REQUEST['filterName'])) {
$filterName = $_REQUEST['filterName'];
- $where .= "T.name like '%$filterName%'";
+ $where .= " AND T.name like '%$filterName%'";
$haveFilter = true;
}
// Check if this is a request to show archived members
if (isset($_REQUEST['filterArchived'])) {
- $where .= " T.access = ".$this->config['memb_access_numb']['Archived'];
+ $where .= " AND T.access = ".$this->config['memb_access_numb']['Archived'];
$filterArchived = true;
$haveFilter = true;
// If not, don't show them
} else {
- $where .= " T.access != ".$this->config['memb_access_numb']['Archived'];
+ $where .= " AND T.access != ".$this->config['memb_access_numb']['Archived'];
}
// Get a current list of members