Plugin Directory

Changeset 1535850


Ignore:
Timestamp:
11/17/2016 06:57:19 PM (9 years ago)
Author:
anuislam
Message:

fix bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • as-woocommerce-with-owl-carousel/trunk/inc/functions.php

    r1465120 r1535850  
    226226            if ($_POST['stopOnHover'] == 'true') {
    227227                $as_woo_data['stopOnHover'] = 'true';               
    228             }elseif ($as_woo_data['stopOnHover'] == 'false') {
     228            }elseif ($_POST['stopOnHover'] == 'false') {
    229229                $as_woo_data['stopOnHover'] = 'false';
    230230            }else{
     
    670670    global $as_woo_owl_setting_error;
    671671    $as_woo_owl_setting_error = new WP_Error();
    672     if ($_POST['as_woo_owl_setting_submit']) {
     672    if (!empty($_POST['as_woo_owl_setting_submit'])) {
    673673        $loader_gif                     = esc_url($_POST['loader_gif']);
    674674        $as_atc_loader_gif              = esc_url($_POST['as_atc_loader_gif']);
     
    835835$as_woo_height   = (empty($as_woo_set_value['as_woo_height'])) ? 200 : $as_woo_set_value['as_woo_height'];
    836836
    837 if ($as_woo_set_value['as_woo_checkbox'] == 'yes') {
     837if (@$as_woo_set_value['as_woo_checkbox'] == 'yes') {
    838838       add_image_size( 'as_woo_owl_image', $as_woo_width, $as_woo_height, true );
    839839}else{
Note: See TracChangeset for help on using the changeset viewer.