Skip to content

Commit

Permalink
Whitespace / coding guidelines
Browse files Browse the repository at this point in the history
Issue #12677
  • Loading branch information
dregad authored and atrol committed Aug 30, 2018
1 parent 9d59867 commit e6951da
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions manage_user_page.php
Expand Up @@ -64,8 +64,8 @@
$f_filter = mb_strtoupper( gpc_get_string( 'filter', config_get( 'default_manage_user_prefix' ) ) );
$f_page_number = gpc_get_int( 'page_number', 1 );

$f_findname = gpc_get_string( 'findname', '' );
if( $f_findname <> "") {
$f_findname = gpc_get_string( 'findname', '' );
if( $f_findname <> "" ) {
$f_filter = 'SEARCH';
}

Expand Down Expand Up @@ -190,19 +190,19 @@
$t_where_params = array();
if( $f_filter === 'ALL' ) {
$t_where = '(1 = 1)';
} else if( $f_filter === 'SEARCH' ) {
} else if( $f_filter === 'SEARCH' ) {
$t_pos = strpos($f_findname, '-');
if( $t_pos ) {
$t_exclude = trim( substr( $f_findname,$t_pos+1 ) );
$f_findname = trim( substr( $f_findname, 0,$t_pos-1 ) );
$t_where_params[] = '%'.$f_findname . '%';
$t_where = db_helper_like( 'realname' );
$t_where .= " AND NOT ";
$t_where_params[] = '%'.$t_exclude . '%';
$t_where .= db_helper_like( 'realname' );
$t_exclude = trim( substr( $f_findname, $t_pos+1 ) );
$f_findname = trim( substr( $f_findname, 0,$t_pos-1 ) );
$t_where_params[] = '%' . $f_findname . '%';
$t_where = db_helper_like( 'realname' );
$t_where .= " AND NOT ";
$t_where_params[] = '%' . $t_exclude . '%';
$t_where .= db_helper_like( 'realname' );
} else {
$t_where_params[] = '%'.$f_findname . '%';
$t_where = db_helper_like( 'realname' );
$t_where_params[] = '%' . $f_findname . '%';
$t_where = db_helper_like( 'realname' );
}
} else if( $f_filter === 'UNUSED' ) {
$t_where = '(login_count = 0) AND ( date_created = last_visit )';
Expand Down

0 comments on commit e6951da

Please sign in to comment.