Changeset 1070022
- Timestamp:
- 01/17/2015 03:18:20 PM (11 years ago)
- File:
-
- 1 edited
-
knvb-api/trunk/knvb-client.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
knvb-api/trunk/knvb-client.php
r1057161 r1070022 93 93 if(isset($list) && strpos($extra, 'thuis=1') !== false) { 94 94 $thuis = array_filter($list, function($row) { 95 return (isset($row->ThuisClub) && substr($row->ThuisClub, 0, 7) === $this->clubName); 95 $length = strlen($this->clubName); 96 return (isset($row->ThuisClub) && substr($row->ThuisClub, 0, $length) === $this->clubName); 96 97 }); 97 98 98 99 $uit = array_filter($list, function($row) { 99 return (isset($row->ThuisClub) && substr($row->UitClub, 0, 7) === $this->clubName); 100 $length = strlen($this->clubName); 101 return (isset($row->ThuisClub) && substr($row->UitClub, 0, $length) === $this->clubName); 100 102 }); 101 103
Note: See TracChangeset
for help on using the changeset viewer.