Plugin Directory

Changeset 2775916


Ignore:
Timestamp:
08/26/2022 06:13:45 AM (4 years ago)
Author:
rezgo
Message:

committing version 4.1.15

Location:
rezgo/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rezgo/trunk/readme.txt

    r2775181 r2775916  
    66Tested up to: 6.0.1
    77Requires PHP: 5.2
    8 Stable tag: 4.1.14
     8Stable tag: 4.1.15
    99
    1010Sell your tours, activities, and events on your WordPress website using Rezgo.
     
    133133
    134134== Changelog ==
     135= 4.1.15 =
     136* PHP 8 compatibility fixes
     137
    135138= 4.1.14 =
    136139* Escape function fixes
  • rezgo/trunk/rezgo.php

    r2775181 r2775916  
    55    Plugin URI: https://wordpress.org/plugins/rezgo/
    66    Description: Connect WordPress to your Rezgo account and accept online bookings directly on your website.
    7     Version: 4.1.14
     7    Version: 4.1.15
    88    Author: Rezgo
    99    Author URI: http://www.rezgo.com
     
    5454define('REZGO_PLUGIN_NAME', 'rezgo');
    5555define('REZGO_PLUGIN_DIR', plugin_dir_path(__FILE__));
    56 define('REZGO_PLUGIN_VERSION', '4.1.14');
     56define('REZGO_PLUGIN_VERSION', '4.1.15');
    5757
    5858require_once('rezgo/include/page_header.php');
  • rezgo/trunk/rezgo/include/class.rezgo.php

    r2769142 r2775916  
    15681568            $obj->type = 1;
    15691569
    1570             if($xml->day->$xd) {
    1571                 $obj->cond = $cond = (string) $xml->day->$xd->attributes()->condition;
    1572                 if($xml->day->$xd->item[0]) {
     1570            if($xml->day[$xd]) {
     1571                $obj->cond = $cond = (string) $xml->day[$xd]->attributes()->condition;
     1572                if($xml->day[$xd]->item[0]) {
    15731573                    // we want to convert the attribute to something easier to use in the template
    15741574                    $n=0;
    1575                     foreach($xml->day->$xd->item as $i) {
     1575                    foreach($xml->day[$xd]->item as $i) {
    15761576                        if($i) {
    15771577                            $obj->items[$n] = new stdClass();
     
    15831583                    }
    15841584                } else {
    1585                     if($xml->day->$xd->item) {
     1585                    if($xml->day[$xd]->item) {
    15861586                        $obj->items[0] = new stdClass();
    1587                         $obj->items[0]->uid = $xml->day->$xd->item->uid;
    1588                         $obj->items[0]->name = $xml->day->$xd->item->name;
    1589                         $obj->items[0]->availability = $xml->day->$xd->item->attributes()->value;
     1587                        $obj->items[0]->uid = $xml->day[$xd]->item->uid;
     1588                        $obj->items[0]->name = $xml->day[$xd]->item->name;
     1589                        $obj->items[0]->availability = $xml->day[$xd]->item->attributes()->value;
    15901590                    }
    15911591                }
Note: See TracChangeset for help on using the changeset viewer.