Changeset 71
- Timestamp:
- Mar 30, 2024, 11:30:23 PM (8 months ago)
- Location:
- trunk/Modules/Meet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Meet.php
r68 r71 39 39 $DateTime = str_replace('. ', '.', $DateTime); 40 40 $Parts = explode(' ', $DateTime); 41 if (count($Parts) > 0) 41 if (count($Parts) > 0) 42 42 { 43 43 $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) 46 48 { 47 49 $TimeParts = explode(':', $Parts[1]); … … 279 281 $Pattern = '/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i'; 280 282 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] != '')) 282 284 { 283 285 $Result = $Matches[0][0]; -
trunk/Modules/Meet/MeetPage.php
r67 r71 56 56 $this->RawPage = true; 57 57 } else { 58 $Output .= '<div class="title">Inzeráty</div>'; 58 $Output .= '<div class="title">Inzeráty</div>'; 59 59 } 60 60 … … 118 118 $DbResult = $this->Database->select('MeetSource', 'InsertURL, Name, Id', 'InsertURL != ""'); 119 119 while ($DbRow = $DbResult->fetch_assoc()) 120 { 120 { 121 121 $Output .= '<option value="'.$DbRow['Id'].'" onclick="window.open(\''. 122 $DbRow['InsertURL'].'\',\'_blank\',\'\')" onselect="window.open(\''. 122 123 $DbRow['InsertURL'].'\',\'_blank\',\'\')">'.$DbRow['Name'].'</option>'; 123 124 }
Note:
See TracChangeset
for help on using the changeset viewer.