Plugin Directory

Changeset 3052183


Ignore:
Timestamp:
03/16/2024 03:08:39 PM (2 years ago)
Author:
petmatchpro
Message:

Revise lost/found search shortcode.

Location:
petmatchpro/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • petmatchpro/trunk/CHANGE-LOG.txt

    r3051302 r3052183  
     1Version 4.6.3- March 15, 2024
     2+ /includes/pp/class-pet-match-pro-pp-api.php
     3    * Correct error with return of no combined lost/found search results.
     4
    15Version 4.6.2- March 14, 2024
    26+ /includes/pp/class-pet-match-pro-pp-api.php
  • petmatchpro/trunk/README.txt

    r3051302 r3052183  
    66Requires at least: 5.0
    77Tested up to: 6.4
    8 Stable tag: 4.6.2
     8Stable tag: 4.6.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • petmatchpro/trunk/includes/pp/class-pet-match-pro-pp-api.php

    r3051302 r3052183  
    716716
    717717        /* Remove Last Blank Entry from Arrays */
    718         if (is_countable($firstxmlWSArray['XmlNode'])) {
    719             $firstArrayCount = count($firstxmlWSArray['XmlNode'])-1;
     718        if (array_key_exists('XmlNode', $firstxmlWSArray)) {
     719            if (is_countable($firstxmlWSArray['XmlNode'])) {
     720                $firstArrayCount = count($firstxmlWSArray['XmlNode'])-1;
     721            } else {
     722                $firstArrayCount = 0;
     723            }
    720724        } else {
    721             $firstArrayCount = 0;
     725                $firstArrayCount = 0;
    722726        }
    723727        //echo 'First Array Count = ' . $firstArrayCount . '<br>';
     
    726730            unset($firstxmlWSArray['XmlNode'][$firstUnset]);
    727731        }
    728         if (is_countable($nextxmlWSArray['XmlNode'])) {
    729             $nextArrayCount = count($nextxmlWSArray['XmlNode'])-1;
    730         } else {
    731             $nextArrayCount = 0;
    732         }
     732        if (array_key_exists('XmlNode', $nextxmlWSArray)) {
     733            if (is_countable($nextxmlWSArray['XmlNode'])) {
     734                $nextArrayCount = count($nextxmlWSArray['XmlNode'])-1;
     735            } else {
     736                $nextArrayCount = 0;
     737            }
     738        } else {
     739            $nextArrayCount = 0;
     740        }
    733741        //echo 'Next Array Count = ' . $nextArrayCount . '<br>';
    734742        $nextUnset = $nextArrayCount;
  • petmatchpro/trunk/pet-match-pro.php

    r3051302 r3052183  
    1313 * Plugin Name:       PetMatchPro
    1414 * Description:        Integrates animal search and details from your PetPoint/Petango or RescueGroups account into your website with simple shortcodes.
    15  * Version:           4.6.2
     15 * Version:           4.6.3
    1616 * Author:            PetMatchPro
    1717 * Author URI:        https://PetMatchPro.com
     
    2828 * Current plugin version.
    2929 */
    30 define('PET_MATCH_PRO_VERSION', '4.6.2');
     30define('PET_MATCH_PRO_VERSION', '4.6.3');
    3131
    3232/* Define Global Variables */
Note: See TracChangeset for help on using the changeset viewer.