Plugin Directory

Changeset 2545378


Ignore:
Timestamp:
06/10/2021 04:11:33 AM (5 years ago)
Author:
efetech
Message:

update error php version < 7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gf-auto-populate-country-state-city-ward-dropdown-addon/trunk/includes/class-gffield-countrycity.php

    r2508393 r2545378  
    117117
    118118            usort($country_1, function ($item1, $item2) {
    119                 return $item1['name'] <=> $item2['name'];
     119                if ($item1['name'] == $item2['name']) {
     120                    return 0;
     121                }
     122                return ($item1['name'] < $item2['name']) ? -1 : 1;
     123                // php version < 7.
     124                // return $item1['name'] <=> $item2['name'];
    120125            });
    121126
Note: See TracChangeset for help on using the changeset viewer.