Ignore:
Timestamp:
Mar 30, 2024, 11:30:23 PM (8 months ago)
Author:
chronos
Message:
  • Fixed: Warnings in meet imports.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Meet/Meet.php

    r68 r71  
    3939  $DateTime = str_replace('. ', '.', $DateTime);
    4040  $Parts = explode(' ', $DateTime);
    41   if (count($Parts) > 0) 
     41  if (count($Parts) > 0)
    4242  {
    4343    $DateParts = explode('.', $Parts[0]);
    44   }
    45   if (count($Parts) > 1)
     44    if (count($DateParts) == 1) $DateParts[1] = '0';
     45    if (count($DateParts) == 2) $DateParts[2] = '0';
     46  } else return NULL;
     47  if (count($Parts) > 1)
    4648  {
    4749    $TimeParts = explode(':', $Parts[1]);
     
    279281    $Pattern = '/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i';
    280282    preg_match_all($Pattern, $Text, $Matches);
    281     if ((count($Matches) > 0) and ($Matches[0][0] != ''))
     283    if ((count($Matches) > 0) and (count($Matches[0]) > 0) and ($Matches[0][0] != ''))
    282284    {
    283285      $Result = $Matches[0][0];
Note: See TracChangeset for help on using the changeset viewer.