Changeset 55 for trunk/Modules/Event
- Timestamp:
- Apr 7, 2020, 12:55:39 AM (5 years ago)
- Location:
- trunk/Modules/Event
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Event/Event.php
r52 r55 117 117 $Result = 1; 118 118 } else $Result = 0; 119 return ($Result);119 return $Result; 120 120 } 121 121 } -
trunk/Modules/Event/EventPage.php
r52 r55 79 79 '(SELECT EventSource.URL FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceURL FROM Event) AS T WHERE (T.Hidden=0) AND '. 80 80 $Where.$Order['SQL'].$PageList['SQLLimit']); 81 while ($Event = $DbResult->fetch_assoc())81 while ($Event = $DbResult->fetch_assoc()) 82 82 { 83 83 $Output .= '<tr>'. … … 102 102 $Output .= '<div><a href="'.$this->System->Link('/udalosti/rss/').'"><img src="'.$this->System->Link('/images/rss20.png').'" alt="rss20"/></a></div>'; 103 103 } 104 return ($Output);104 return $Output; 105 105 } 106 106 } … … 138 138 $this->Title = 'Událost - Události - '.$this->Title; 139 139 $Output = ''; 140 if (count($this->System->PathItems) > 2)140 if (count($this->System->PathItems) > 2) 141 141 { 142 142 $id = $this->System->PathItems[2] * 1; … … 199 199 $DbResult = $this->Database->select('Event', '*, (SELECT EventSource.Name FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceName, '. 200 200 '(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()) 202 202 { 203 203 $Title = $Event['Title']; -
trunk/Modules/Event/Import/JoeClub.php
r52 r55 45 45 { 46 46 $Output = ''; 47 if ($Event->Link == '') return ($Output);47 if ($Event->Link == '') return $Output; 48 48 $Content = file_get_contents($Event->Link); 49 49 … … 72 72 $Time = substr($Time, 0, strpos($Time, '–')); 73 73 74 if ($Time == '') return(NULL);74 if ($Time == '') return NULL; 75 75 $Time = str_replace('@', '', $Time); 76 76
Note:
See TracChangeset
for help on using the changeset viewer.