Skip to content

Commit

Permalink
fix in includes/class-analytics.php when checking for cloudflare emai…
Browse files Browse the repository at this point in the history
…l and api key. caught by phpunit
  • Loading branch information
Tyler Kemme committed May 29, 2017
1 parent fa809a4 commit 1506804
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/class-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ public function analytics_page_display()
$cloudclient = $this->plugin->cloudclient;
$charts = $this->plugin->charts;
$zones = $cloudclient->wpcd_get_zones();

if( empty( wpcd_get_option( 'cloudflare_email_address' ) ) || empty( wpcd_get_option( 'cloudflare_api_key' ) ) ): ?>
$ccemail = wpcd_get_option( 'cloudflare_email_address' );
$ccapi = wpcd_get_option( 'cloudflare_api_key' );
if( empty( $ccemail ) || empty( $ccapi ) ): ?>
<div class="wrap wpcd-analytics-page <?php echo esc_attr( $this->key ); ?>">
<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
<br/>
Expand Down

0 comments on commit 1506804

Please sign in to comment.