Browse files

Corrected notice errors

  • Loading branch information...
1 parent 5fdfea9 commit 2ab922dc2ed2ab8742bc815c4c66f808b649141e @loxK committed May 26, 2010
Showing with 3 additions and 3 deletions.
  1. +2 −2 sfc-base.php
  2. +1 −1 sfc-fan-box-widget.php
View
4 sfc-base.php
@@ -9,7 +9,7 @@
// load the FB script into the head
add_action('wp_enqueue_scripts','sfc_featureloader');
function sfc_featureloader() {
- if ($_SERVER['HTTPS'] == 'on')
+ if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
wp_enqueue_script( 'fb-featureloader', 'https://ssl.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/'.get_locale(), array(), '0.4', false);
else
wp_enqueue_script( 'fb-featureloader', 'http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/'.get_locale(), array(), '0.4', false);
@@ -169,7 +169,7 @@ function sfc_section_text() {
$connecturl = $a->connect_url;
}
- if (!SFC_IGNORE_ERRORS && !empty($connecturl)) {
+ if ( (!defined('SFC_IGNORE_ERRORS') || !SFC_IGNORE_ERRORS) && !empty($connecturl)) {
$siteurl = trailingslashit(get_option('siteurl'));
if (@strpos($siteurl, $connecturl) === false) {
$error = true;
View
2 sfc-fan-box-widget.php
@@ -167,7 +167,7 @@ function sfc_fanbox_section_callback() {
function sfc_fanbox_css_callback() {
$options = get_option('sfc_options');
- if (!$options['fanbox_css']) $options['fanbox_css'] = '';
+ if (!isset($options['fanbox_css']) || !$options['fanbox_css']) $options['fanbox_css'] = '';
/* good default CSS to use:
.connect_widget .connect_widget_facebook_logo_menubar {

0 comments on commit 2ab922d

Please sign in to comment.