Changeset 62 for trunk/Modules


Ignore:
Timestamp:
Apr 28, 2021, 6:20:44 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Also do not show old items.
Location:
trunk/Modules
Files:
2 edited

Legend:

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

    r61 r62  
    150150    $Output .= '<div class="title">Události</div>';
    151151    $DbResult = $this->Database->select('Event', '*, (SELECT EventSource.Name FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceName, '.
    152       '(SELECT EventSource.URL FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceURL', 'Id='.$id);
     152      '(SELECT EventSource.URL FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceURL, '.GetDefaultEventFilter().' AS Filter', 'Id='.$id);
    153153    if ($DbResult->num_rows > 0)
    154154    {
    155155      $Event = $DbResult->fetch_assoc();
    156       if (($Event['Hidden'] == '1') and !$this->System->IsAdmin())
     156      if (($Event['Filter'] == '0') and !$this->System->IsAdmin())
    157157        return 'Položka nenalezena';
    158158      if ($Event['Link'] != '') $Link = '<a href="'.$Event['Link'].'">Odkaz</a>';
  • trunk/Modules/Meet/MeetPage.php

    r61 r62  
    161161    $Gender = array('', 'Muž', 'Žena');
    162162    $DbResult = $this->Database->select('MeetItem', '*, (SELECT MeetSource.Name FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceName, '.
    163       '(SELECT MeetSource.URL FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceURL', 'Id='.$id);
     163      '(SELECT MeetSource.URL FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceURL, '.GetDefaultMeetFilter().' AS Filter', 'Id='.$id);
    164164    if ($DbResult->num_rows > 0)
    165165    {
    166166      $MeetItem = $DbResult->fetch_assoc();
    167       if (($MeetItem['Hidden'] == '1') and !$this->System->IsAdmin())
     167      if (($MeetItem['Filter'] == '0') and !$this->System->IsAdmin())
    168168        return 'Položka nenalezena';
    169169      if ($MeetItem['Link'] != '') $Link = '<a href="'.$MeetItem['Link'].'">Odkaz</a>';
Note: See TracChangeset for help on using the changeset viewer.