Changeset 71


Ignore:
Timestamp:
Mar 30, 2024, 11:30:23 PM (4 weeks ago)
Author:
chronos
Message:
  • Fixed: Warnings in meet imports.
Location:
trunk/Modules/Meet
Files:
2 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];
  • trunk/Modules/Meet/MeetPage.php

    r67 r71  
    5656      $this->RawPage = true;
    5757    } else {
    58       $Output .= '<div class="title">Inzeráty</div>';     
     58      $Output .= '<div class="title">Inzeráty</div>';
    5959    }
    6060
     
    118118      $DbResult = $this->Database->select('MeetSource', 'InsertURL, Name, Id', 'InsertURL != ""');
    119119      while ($DbRow = $DbResult->fetch_assoc())
    120       {   
     120      {
    121121        $Output .= '<option value="'.$DbRow['Id'].'" onclick="window.open(\''.
     122          $DbRow['InsertURL'].'\',\'_blank\',\'\')" onselect="window.open(\''.
    122123          $DbRow['InsertURL'].'\',\'_blank\',\'\')">'.$DbRow['Name'].'</option>';
    123124      }
Note: See TracChangeset for help on using the changeset viewer.