Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -211,14 +211,22 @@ class _members extends \IPS\Widget\StaticCache
|
||||
}
|
||||
}
|
||||
|
||||
/* Exclude banned, validating and spammers */
|
||||
$where[] = array( "core_members.temp_ban=0" );
|
||||
$where[] = array( "core_members.email!=''" );
|
||||
$where[] = array( '( ! ' . \IPS\Db::i()->bitwiseWhere( \IPS\Member::$bitOptions['members_bitoptions'], 'bw_is_spammer' ) . ' )' );
|
||||
$where[] = array( "( core_validating.vid IS NULL ) " );
|
||||
|
||||
$select = \IPS\Db::i()->select(
|
||||
'*',
|
||||
'core_members.*',
|
||||
'core_members',
|
||||
$where,
|
||||
$sort,
|
||||
( isset( $this->configuration['widget_member_show'] ) and $this->configuration['widget_member_show'] !== -1 ) ? array( 0, $this->configuration['widget_member_show'] ) : 100
|
||||
);
|
||||
|
||||
$select->join( 'core_validating', 'core_validating.member_id=core_members.member_id AND core_validating.new_reg = 1' );
|
||||
|
||||
if ( \count( $joins ) )
|
||||
{
|
||||
foreach( $joins as $join )
|
||||
|
||||
Reference in new issue
Block a user