Changeset 62 for trunk/Modules/Event/EventPage.php
- Timestamp:
- Apr 28, 2021, 6:20:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Event/EventPage.php
r61 r62 150 150 $Output .= '<div class="title">Události</div>'; 151 151 $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); 153 153 if ($DbResult->num_rows > 0) 154 154 { 155 155 $Event = $DbResult->fetch_assoc(); 156 if (($Event[' Hidden'] == '1') and !$this->System->IsAdmin())156 if (($Event['Filter'] == '0') and !$this->System->IsAdmin()) 157 157 return 'Položka nenalezena'; 158 158 if ($Event['Link'] != '') $Link = '<a href="'.$Event['Link'].'">Odkaz</a>';
Note:
See TracChangeset
for help on using the changeset viewer.