This commit is contained in:
Mike Jolley 2012-03-30 16:13:01 +01:00
parent c28b28e712
commit c14c86688d
1 changed files with 7 additions and 7 deletions

View File

@ -26,13 +26,13 @@ class WC_Local_Delivery extends WC_Shipping_Method {
$this->init_settings();
// Define user set variables
$this->enabled = $this->settings['enabled'];
$this->title = $this->settings['title'];
$this->fee = $this->settings['fee'];
$this->type = $this->settings['type'];
$this->codes = $this->settings['codes'];
$this->availability = $this->settings['availability'];
$this->countries = $this->settings['countries'];
$this->enabled = empty( $this->settings['enabled'] ) ? 'no' : $this->settings['enabled'];
$this->title = empty( $this->settings['title'] ) ? '' : $this->settings['title'];
$this->fee = empty( $this->settings['fee'] ) ? '' : $this->settings['fee'];
$this->type = empty( $this->settings['type'] ) ? '' : $this->settings['type'];
$this->codes = empty( $this->settings['codes'] ) ? '' : $this->settings['codes'];
$this->availability = empty( $this->settings['availability'] ) ? '' : $this->settings['availability'];
$this->countries = empty( $this->settings['countries'] ) ? '' : $this->settings['countries'];
add_action('woocommerce_update_options_shipping_methods', array(&$this, 'process_admin_options'));
}