Plugin Directory

Changeset 3122816


Ignore:
Timestamp:
07/21/2024 07:08:06 PM (20 months ago)
Author:
petmatchpro
Message:

Correct AnimalsFirst Location Constant

Location:
petmatchpro/trunk
Files:
2 edited

Legend:

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

    r3122590 r3122816  
    898898            }
    899899
     900            if (array_key_exists(constant('ANIMALSFIRST_LOCATION'), $resultArray)) {           
     901                if (strlen(trim($resultArray[constant('ANIMALSFIRST_LOCATION')])) == 0 ) {
     902                    $resultArray[constant('ANIMALSFIRST_LOCATION')] = constant('EMPTY_VALUE');   
     903                }     
     904            } else {
     905                $resultArray[constant('ANIMALSFIRST_LOCATION')] = constant('EMPTY_VALUE');
     906            }
     907
    900908            /* Process Search Results */
    901909            $DetailsOutput = [];
    902910            //echo 'Processing Results for Animal ' . $resultArray[constant('ANIMALSFIRST_ID')] . ' with Name ' . $animalName . ' at Location ' . $resultArray[constant('ANIMALSFIRST_LOCATION')] . '.<br>';
     911            //echo '<pre>LOCATION EXCLUSIONS<br>'; print_r($this->locationExclusionArray); echo '</pre>';
    903912            if ( (!array_key_exists(constant('ERROR'), $searchResultDetails)) && (!array_key_exists($resultArray[constant('ANIMALSFIRST_LOCATION')],$this->locationExclusionArray)) ) { 
    904913                foreach ($resultArray as $animalKey => $animalKeyValue) { 
  • petmatchpro/trunk/pet-match-pro.php

    r3122590 r3122816  
    108108define('ANIMALSFIRST_FEATURED', 'featured');
    109109define('ANIMALSFIRST_ID', 'id');
    110 define('ANIMALSFIRST_LOCATION', 'locationname');
     110define('ANIMALSFIRST_LOCATION', 'location');
    111111define('ANIMALSFIRST_MEDIA', 'all_photos, youtube_links');
    112112define('ANIMALSFIRST_MICROCHIP', 'microchip');
Note: See TracChangeset for help on using the changeset viewer.