$most_active = $t;
}
- if ( $display == true ) {
+ if ( $display ) {
if ( is_array( $most_active ) ) {
reset( $most_active );
foreach ( (array) $most_active as $key => $details ) {
wp_redirect( $ref );
exit();
}
- if ( empty( $_SERVER['HTTP_REFERER'] ) == false ) {
+ if ( ! empty( $_SERVER['HTTP_REFERER'] ) ) {
wp_redirect( $_SERVER['HTTP_REFERER'] );
exit();
}