Changeset 55 for trunk/Modules/Meet/Meet.php
- Timestamp:
- Apr 7, 2020, 12:55:39 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Meet.php
r47 r55 34 34 function HumanDateTimeToTime($DateTime) 35 35 { 36 if ($DateTime == '') return(NULL);36 if ($DateTime == '') return NULL; 37 37 $DateTime = str_replace('. ', '.', $DateTime); 38 38 $Parts = explode(' ', $DateTime); … … 44 44 } else $TimeParts = array(0, 0, 0); 45 45 $Result = mktime($TimeParts[0], $TimeParts[1], $TimeParts[2], $DateParts[1], $DateParts[0], $DateParts[2]); 46 return ($Result);46 return $Result; 47 47 } 48 48 49 49 function HumanDateToTime($Date) 50 50 { 51 if ($Date == '') return(NULL);52 return (HumanDateTimeToTime($Date.' 0:0:0'));51 if ($Date == '') return NULL; 52 return HumanDateTimeToTime($Date.' 0:0:0'); 53 53 } 54 54 … … 60 60 $ret = html_entity_decode($str, ENT_COMPAT, 'UTF-8'); 61 61 $p2 = 0; 62 for (;;)62 for (;;) 63 63 { 64 64 $p = strpos($ret, $prefix, $p2); … … 105 105 function is_alpha($Char) 106 106 { 107 return (( ($Char >= 'a') and ($Char <= 'z')) or (($Char >= 'A') and ($Char <= 'Z')));107 return (($Char >= 'a') and ($Char <= 'z')) or (($Char >= 'A') and ($Char <= 'Z')); 108 108 } 109 109 … … 116 116 { 117 117 $Result = ''; 118 for (;;)118 for (;;) 119 119 { 120 120 $Pos = strpos($Text, $Needle); … … 142 142 { 143 143 $Result = ''; 144 for (;;)144 for (;;) 145 145 { 146 146 $Pos = strpos($Text, $Needle); … … 432 432 $Result = 1; 433 433 } else $Result = 0; 434 return ($Result);435 } 436 } 434 return $Result; 435 } 436 }
Note:
See TracChangeset
for help on using the changeset viewer.