Plugin Directory

Changeset 1254478


Ignore:
Timestamp:
09/27/2015 01:32:33 PM (10 years ago)
Author:
hoest
Message:

Release 1.9

Location:
knvb-api
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • knvb-api/tags/1.9/knvb-client.php

    r1254459 r1254478  
    6060
    6161    if(isset($json_data) && property_exists($json_data, 'List')) {
    62       usort($json_data->List, function($a, $b) {
    63         if(property_exists($a, 'Datum') && property_exists($a, 'Tijd') &&
    64            property_exists($b, 'Datum') && property_exists($b, 'Tijd') &&
    65            isset($a->Datum) && isset($a->Tijd) &&
    66            isset($b->Datum) && isset($b->Tijd)) {
     62      if(property_exists($json_data->List[0], 'Datum') &&
     63         property_exists($json_data->List[0], 'Tijd') &&
     64         isset($json_data->List[0]->Datum) &&
     65         isset($json_data->List[0]->Tijd)) {
     66        usort($json_data->List, function($a, $b) {
    6767          $dt_a = str_replace('-', '', $a->Datum) . $a->Tijd;
    6868          $dt_b = str_replace('-', '', $b->Datum) . $b->Tijd;
    6969
    7070          return strcmp($dt_a, $dt_b);
    71         }
    72       });
     71        });
     72      }
    7373
    7474      return $json_data->List;
  • knvb-api/tags/1.9/readme.txt

    r1254470 r1254478  
    55Requires at least: 3.0.1
    66Tested up to: 4.3
    7 Stable tag: 1.8
     7Stable tag: 1.9
    88
    99This plugin can be used for Dutch football clubs with a WordPress wedsite and a API-key for the KNVB data-API: http://www.knvbdataservice.nl/
  • knvb-api/trunk/knvb-client.php

    r1254459 r1254478  
    6060
    6161    if(isset($json_data) && property_exists($json_data, 'List')) {
    62       usort($json_data->List, function($a, $b) {
    63         if(property_exists($a, 'Datum') && property_exists($a, 'Tijd') &&
    64            property_exists($b, 'Datum') && property_exists($b, 'Tijd') &&
    65            isset($a->Datum) && isset($a->Tijd) &&
    66            isset($b->Datum) && isset($b->Tijd)) {
     62      if(property_exists($json_data->List[0], 'Datum') &&
     63         property_exists($json_data->List[0], 'Tijd') &&
     64         isset($json_data->List[0]->Datum) &&
     65         isset($json_data->List[0]->Tijd)) {
     66        usort($json_data->List, function($a, $b) {
    6767          $dt_a = str_replace('-', '', $a->Datum) . $a->Tijd;
    6868          $dt_b = str_replace('-', '', $b->Datum) . $b->Tijd;
    6969
    7070          return strcmp($dt_a, $dt_b);
    71         }
    72       });
     71        });
     72      }
    7373
    7474      return $json_data->List;
  • knvb-api/trunk/readme.txt

    r1254470 r1254478  
    55Requires at least: 3.0.1
    66Tested up to: 4.3
    7 Stable tag: 1.8
     7Stable tag: 1.9
    88
    99This plugin can be used for Dutch football clubs with a WordPress wedsite and a API-key for the KNVB data-API: http://www.knvbdataservice.nl/
Note: See TracChangeset for help on using the changeset viewer.