Plugin Directory

Changeset 2826577


Ignore:
Timestamp:
11/30/2022 03:30:45 PM (3 years ago)
Author:
ipol
Message:

small fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fivepost/trunk/classes/shipping.class.php

    r2777167 r2826577  
    411411            parse_str(!empty($_POST['post_data']) ? sanitize_text_field($_POST['post_data']) : '', $post_data);
    412412            $location_parts = [];
    413 
     413           
     414            if (isset($_POST['fivepost_point_id']) && !empty($_POST['fivepost_point_id']))
     415                $post_data['fivepost_point_id'] = $_POST['fivepost_point_id'];
     416
     417            if (isset($_POST['fivepost_point_zone']) && !empty($_POST['fivepost_point_zone']))
     418                $post_data['fivepost_point_zone'] = $_POST['fivepost_point_zone'];
     419           
    414420            if (!empty($package['destination']['country'])) {
    415421                if (!empty($countries[$package['destination']['country']]))
     
    733739        $new_status = 'not_set';
    734740        if ($fp_status!='Not_Set') $new_status = $this->settings['fivepost_status_'.$fp_status];
    735         if ( ($new_status!='not_set') || ($new_status!='') ) return $new_status;
    736         return false;
     741        if ( ($new_status=='not_set') || ($new_status=='') ) return false;
     742        return $new_status;
    737743    }
    738744
Note: See TracChangeset for help on using the changeset viewer.