Plugin Directory

Changeset 3051302


Ignore:
Timestamp:
03/14/2024 07:19:16 PM (2 years ago)
Author:
petmatchpro
Message:

Correct bug in the display of lost/found animals.

Location:
petmatchpro/trunk
Files:
6 edited

Legend:

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

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

    r3050057 r3051302  
    66Requires at least: 5.0
    77Tested up to: 6.4
    8 Stable tag: 4.6.1
     8Stable tag: 4.6.2
    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

    r3050057 r3051302  
    737737        }
    738738        $xmlWSArray=array(); 
    739         if ( ($firstArrayCount > 0) || ($nextArrayCount > 0) ) {
     739        if ( ($firstArrayCount > 0) && ($nextArrayCount > 0) ) {
     740//      if ( ($firstArrayCount > 0) || ($nextArrayCount > 0) ) {
    740741            $xmlWSArray = array_merge_recursive($firstxmlWSArray, $nextxmlWSArray);
    741742            /* Resequence Key Values */
    742             $xmlWSArray = array_values($xmlWSArray['XmlNode']);
     743//          $xmlWSArray = array_values($xmlWSArray['XmlNode']);
    743744            //echo '<pre>Results from Combining Arrays '; print_r($xmlWSArray); echo '</pre><br>';
     745        } elseif ($nextArrayCount > 0) {
     746            //echo 'First Method Empty<br>';
     747            $xmlWSArray = $nextxmlWSArray;
     748        } elseif ($firstArrayCount > 0) {
     749            //echo 'Second Method Empty<br>';
     750            $xmlWSArray = $firstxmlWSArray;
    744751        }
    745752
    746         if ( (is_countable($xmlWSArray)) ) {
     753        //echo '<pre>Results from Combining Arrays '; print_r($xmlWSArray); echo '</pre><br>';
     754               
     755        if ( (is_countable($xmlWSArray)) && (array_key_exists('XmlNode',$xmlWSArray)) ) {
     756            $xmlWSArray = array_values($xmlWSArray['XmlNode']);     
    747757            $mergeCount = count($xmlWSArray);
    748758        } else {
  • petmatchpro/trunk/pet-match-pro.php

    r3050057 r3051302  
    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.1
     15 * Version:           4.6.2
    1616 * Author:            PetMatchPro
    1717 * Author URI:        https://PetMatchPro.com
     
    2828 * Current plugin version.
    2929 */
    30 define('PET_MATCH_PRO_VERSION', '4.6.1');
     30define('PET_MATCH_PRO_VERSION', '4.6.2');
    3131
    3232/* Define Global Variables */
Note: See TracChangeset for help on using the changeset viewer.