Plugin Directory

Changeset 3310843


Ignore:
Timestamp:
06/13/2025 06:24:27 AM (10 months ago)
Author:
petmatchpro
Message:

v6.0.7 - Continue correction of RescueGroups video processing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • petmatchpro/trunk/includes/rg/class-pet-match-pro-rg-api.php

    r3310220 r3310843  
    13111311        $numThumbs = $numPhotos;
    13121312           
    1313         if ( ($numThumbs <= $maxThumbs) && (is_array($detailsItem[constant('RESCUEGROUPS_VIDEOS')])) ) {
     1313        if ( ($numThumbs <= $maxThumbs) && (array_key_exists(constant('RESCUEGROUPS_VIDEOS'), $detailsItem)) && (is_array($detailsItem[constant('RESCUEGROUPS_VIDEOS')])) ) {
    13141314            if (array_key_exists(0, $detailsItem[constant('RESCUEGROUPS_VIDEOS')])) {
    13151315                $videoCount = count($detailsItem[constant('RESCUEGROUPS_VIDEOS')]);
     
    15721572                            }
    15731573                            //echo '<pre>ANIMAL DETAILS<br>'; print_r($animalDetails); echo '</pre>';
    1574                             // $details = []; - RMB
     1574                            $details = [];
    15751575                            foreach ($animalDetails as $key => $animalItem) {
    15761576                                $details[strtolower($key)] = $animalItem;
Note: See TracChangeset for help on using the changeset viewer.