Ignore:
Timestamp:
Sep 11, 2014, 11:34:08 PM (10 years ago)
Author:
chronos
Message:
  • Opraveno: Výpočet zůstatku pro email s vyúčtováním.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/News/ImportZdechovCzRecords.php

    r683 r692  
    2222  $Date = substr($Content, 0, strpos($Content, '<'));
    2323  $DateParts = explode('.', $Date);
    24   $Date = $DateParts[2].'-'.$DateParts[1].'-'.$DateParts[0];
     24  if(count($DateParts) >= 3)
     25    $Date = $DateParts[2].'-'.$DateParts[1].'-'.$DateParts[0];
     26      else break;
    2527  $Content = substr($Content, strpos($Content, $StartLink) + strlen($StartLink));
    2628  $Link = substr($Content, 0, strpos($Content, '"'));
Note: See TracChangeset for help on using the changeset viewer.