Changeset 24 for trunk/Import/Csts.php


Ignore:
Timestamp:
Dec 26, 2018, 10:45:44 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Wrong age calculation from message text.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Import/Csts.php

    r20 r24  
    3333      $MeetItem->Height = trim(GetTextBetween($Item, "výška:", 'cm'));
    3434      $MeetItem->Message = trim(html_entity_decode(strip_tags(GetTextBetween($Item, '<td colspan="3">', '</td>'))));
     35      // Replace unicode non-breakable space by normal space
     36      $MeetItem->Message = str_replace("\xc2\xa0", "\x20", $MeetItem->Message);     
    3537      $MeetItem->Age = GetAgeFromText($MeetItem->Message);     
    3638      $MeetItem->Height = GetHeightFromText($MeetItem->Message);
Note: See TracChangeset for help on using the changeset viewer.