{
$sql = "SELECT count(DISTINCT id) as count
- FROM $this->table
+ FROM $this->table T
WHERE $where;";
-
$stats = $this->wpdb->get_row($sql, ARRAY_A);
if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
$this->addDataAbstractNotice($sql, 'DataBlock', "DataAbstract - getList() query");
}
+
$list = $this->wpdb->get_results($sql, ARRAY_A);
if (count($list) == 0) {
// Check if this is a request to show archived members
if (isset($_REQUEST['filterArchived'])) {
- $where .= " AND T.access = ".$this->config['access_numb']['Archived'];
+ $where .= " AND access = ".$this->config['access_numb']['Archived'];
$filterArchived = true;
$haveFilter = true;
// If we have any entries
if (count($list) > 0) {
$haveMembers = true;
-
- $memberCount = count($list);
}
}