From fb0de8cc66b55afbd476957c9e2c3dd9b22cb061 Mon Sep 17 00:00:00 2001 From: groucho75 Date: Thu, 21 Apr 2016 22:29:04 +0200 Subject: [PATCH] format code --- pages/alo-easymail-admin-options.php | 6 +++--- pages/alo-easymail-admin-subscribers.php | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/alo-easymail-admin-options.php b/pages/alo-easymail-admin-options.php index 979fa2b..fa5637b 100644 --- a/pages/alo-easymail-admin-options.php +++ b/pages/alo-easymail-admin-options.php @@ -219,14 +219,14 @@ foreach ( $roles as $key ) { if ( $key == 'administrator' ) continue; // skip admin - + if ( $role_options && in_array( $key, $role_options ) ) { - foreach ( $caps as $cap ) ${'role_'.$key}->add_cap( $cap ); + foreach ( $caps as $cap ) ${'role_'.$key}->add_cap( $cap ); } else { - foreach ( $caps as $cap ) ${'role_'.$key}->remove_cap( $cap ); + foreach ( $caps as $cap ) ${'role_'.$key}->remove_cap( $cap ); } } diff --git a/pages/alo-easymail-admin-subscribers.php b/pages/alo-easymail-admin-subscribers.php index ca1583e..e7394af 100644 --- a/pages/alo-easymail-admin-subscribers.php +++ b/pages/alo-easymail-admin-subscribers.php @@ -14,6 +14,11 @@