diff --git a/includes/Listeners/Admin.php b/includes/Listeners/Admin.php index fb2adc7..14885b0 100644 --- a/includes/Listeners/Admin.php +++ b/includes/Listeners/Admin.php @@ -48,7 +48,7 @@ public function view() { /** * Login * - * @param String $user_login username + * @param String $user_login username * * @param WP_User $user logged in user info * @@ -56,7 +56,7 @@ public function view() { */ public function login( $user_login, $user ) { $is_admin = array_key_exists( 'administrator', $user->get_role_caps() ); - if ( ( $is_admin && $user->get_role_caps()['administrator']) || ( $user->get_role_caps() && $user->get_role_caps()['manage_options'] ) ) { + if ( ( $is_admin && $user->get_role_caps()['administrator'] ) || ( $user->get_role_caps() && $user->get_role_caps()['manage_options'] ) ) { $this->push( 'login' ); } }