Plugin Directory

Changeset 2964957


Ignore:
Timestamp:
09/10/2023 01:13:50 PM (3 years ago)
Author:
otasync
Message:

New version

Location:
ota-sync-booking-engine-widget
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ota-sync-booking-engine-widget/tags/1.2.4/otasync-widget.php

    r2959760 r2964957  
    321321                                    $result2=get_between_data($result, '{', '}');
    322322                                    $destinations=json_decode("{".$result2."}");
    323                                     //print_r($destinations);
     323                                    print_r($destinations);
    324324                                    curl_close($ch);
    325                                     if(isset($destinations->addresses)){
     325                                    if(isset($destinations->cities)){
    326326                                    ?>
    327327                                        <select style="border:solid 1px #000" id="destination_s_" class="form-control" name="otasync_w_destinations" >
    328328                                            <?php
    329329                                               
    330                                                 foreach($destinations->addresses as $destination){
     330                                                foreach($destinations->cities as $destination){
    331331                                                    ?><option value="<?php echo $destination; ?>" <?php if(get_option( 'otasync_w_destinations')==$destination) echo "selected"; ?>><?php echo $destination; ?></option><?php
    332332                                                }
  • ota-sync-booking-engine-widget/trunk/otasync-widget.php

    r2959756 r2964957  
    321321                                    $result2=get_between_data($result, '{', '}');
    322322                                    $destinations=json_decode("{".$result2."}");
    323                                     //print_r($destinations);
     323                                    print_r($destinations);
    324324                                    curl_close($ch);
    325                                     if(isset($destinations->addresses)){
     325                                    if(isset($destinations->cities)){
    326326                                    ?>
    327327                                        <select style="border:solid 1px #000" id="destination_s_" class="form-control" name="otasync_w_destinations" >
    328328                                            <?php
    329329                                               
    330                                                 foreach($destinations->addresses as $destination){
     330                                                foreach($destinations->cities as $destination){
    331331                                                    ?><option value="<?php echo $destination; ?>" <?php if(get_option( 'otasync_w_destinations')==$destination) echo "selected"; ?>><?php echo $destination; ?></option><?php
    332332                                                }
Note: See TracChangeset for help on using the changeset viewer.