Skip to content

Commit

Permalink
Don't show the 'You have no formats' message when the site hasn't bee…
Browse files Browse the repository at this point in the history
…n chosen yet.
  • Loading branch information
francois committed May 12, 2010
1 parent 75ac35e commit d9d1b96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adgear-ad-manager/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ function adgear_settings_page() {
<p class="submit">
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
<?php
if ( get_option('adgear_api_username') && get_option('adgear_api_key') && get_option('adgear_api_root_url') ) {
if ( get_option( 'adgear_site_id' ) && get_option( 'adgear_api_username' ) && get_option( 'adgear_api_key' ) && get_option( 'adgear_api_root_url' ) ) {
$sites = adgear_get_service_data( 'list_sites' );
if ( !empty( $sites ) ) {
?>
Expand All @@ -322,7 +322,7 @@ function adgear_settings_page() {
?>
</p>
<?php
if ( get_option('adgear_api_username') && get_option('adgear_api_key') && get_option('adgear_api_root_url') && count( adgear_formats() ) == 0 ) {
if ( get_option( 'adgear_site_id' ) && get_option( 'adgear_api_username' ) && get_option( 'adgear_api_key' ) && get_option( 'adgear_api_root_url' ) && count( adgear_formats() ) == 0 ) {
echo "<p>". _e('Your database does not contain any formats. Use the <em>Reload AdGear AdSpots and Formats</em> button above to prime your database.') ."</p>";
}
?>
Expand Down

0 comments on commit d9d1b96

Please sign in to comment.