Permalink
Browse files

Merge pull request #10 from pebblebed/master

Remove notice when some values are not set
  • Loading branch information...
2 parents 4687998 + 4f61765 commit e851eddda73c916b6b61af32a5936962ae4469cb @wmark committed May 17, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 wp-cdn-linker.php
View
@@ -53,8 +53,10 @@ function ossdl_off_options() {
$excludes[] = '.php';
update_option('ossdl_off_exclude', implode(',', $excludes));
}
- update_option('ossdl_off_rootrelative', !!$_POST['ossdl_off_rootrelative']);
- update_option('ossdl_off_www_is_optional', !!$_POST['ossdl_off_www_is_optional']);
+ $ossdl_off_rootrelative = isset($_POST['ossdl_off_rootrelative']) ? !!$_POST['ossdl_off_rootrelative'] : false;
+ $ossdl_off_www_is_optional = isset($_POST['ossdl_off_www_is_optional']) ? !!$_POST['ossdl_off_www_is_optional'] : false;
+ update_option('ossdl_off_rootrelative', $ossdl_off_rootrelative);
+ update_option('ossdl_off_www_is_optional', $ossdl_off_www_is_optional);
}
$example_cdn_uri = str_replace('http://', 'http://cdn.', str_replace('www.', '', get_option('siteurl')));

0 comments on commit e851edd

Please sign in to comment.