Changeset 71 for trunk/Modules/Meet/Meet.php
- Timestamp:
- Mar 30, 2024, 11:30:23 PM (8 months ago)
- File:
-
- 1 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];
Note:
See TracChangeset
for help on using the changeset viewer.