Changeset 55 for trunk/Modules/Event


Ignore:
Timestamp:
Apr 7, 2020, 12:55:39 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
Location:
trunk/Modules/Event
Files:
3 edited

Legend:

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

    r52 r55  
    117117      $Result = 1;
    118118    } else $Result = 0;
    119     return($Result);
     119    return $Result;
    120120  }
    121121}
  • trunk/Modules/Event/EventPage.php

    r52 r55  
    7979      '(SELECT EventSource.URL FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceURL FROM Event) AS T WHERE (T.Hidden=0) AND '.
    8080      $Where.$Order['SQL'].$PageList['SQLLimit']);
    81     while($Event = $DbResult->fetch_assoc())
     81    while ($Event = $DbResult->fetch_assoc())
    8282    {
    8383      $Output .= '<tr>'.
     
    102102      $Output .= '<div><a href="'.$this->System->Link('/udalosti/rss/').'"><img src="'.$this->System->Link('/images/rss20.png').'" alt="rss20"/></a></div>';
    103103    }
    104     return($Output);
     104    return $Output;
    105105  }
    106106}
     
    138138    $this->Title = 'Událost - Události - '.$this->Title;
    139139    $Output = '';
    140     if(count($this->System->PathItems) > 2)
     140    if (count($this->System->PathItems) > 2)
    141141    {
    142142      $id = $this->System->PathItems[2] * 1;
     
    199199    $DbResult = $this->Database->select('Event', '*, (SELECT EventSource.Name FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceName, '.
    200200      '(SELECT EventSource.URL FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceURL', '`Hidden`=0 ORDER BY `TimeFrom` DESC LIMIT 30');
    201     while($Event = $DbResult->fetch_assoc())
     201    while ($Event = $DbResult->fetch_assoc())
    202202    {
    203203      $Title = $Event['Title'];
  • trunk/Modules/Event/Import/JoeClub.php

    r52 r55  
    4545  {
    4646    $Output = '';
    47     if ($Event->Link == '') return($Output);
     47    if ($Event->Link == '') return $Output;
    4848    $Content = file_get_contents($Event->Link);
    4949
     
    7272      $Time = substr($Time, 0, strpos($Time, '–'));
    7373
    74     if($Time == '') return(NULL);
     74    if ($Time == '') return NULL;
    7575    $Time = str_replace('@', '', $Time);
    7676
Note: See TracChangeset for help on using the changeset viewer.