Changeset 902 for trunk/includes/Global.php
- Timestamp:
- Feb 15, 2025, 9:29:56 AM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Global.php
r901 r902 311 311 $Moderators = array('Překladatel', 'Moderátor', 'Administrátor'); 312 312 313 function HumanDate( string $SQLDateTime): string314 { 315 if ( $SQLDateTime == '') return ' ';313 function HumanDate(?string $SQLDateTime): string 314 { 315 if (($SQLDateTime == NULL) or ($SQLDateTime == '')) return ' '; 316 316 $DateTimeParts = explode(' ', $SQLDateTime); 317 317 if ($DateTimeParts[0] != '0000-00-00') … … 322 322 } 323 323 324 function HumanDateTime( string $SQLDateTime): string325 { 326 if ( $SQLDateTime == '') return ' ';324 function HumanDateTime(?string $SQLDateTime): string 325 { 326 if (($SQLDateTime == NULL) or ($SQLDateTime == '')) return ' '; 327 327 $DateTimeParts = explode(' ', $SQLDateTime); 328 328 if ($DateTimeParts[0] != '0000-00-00' and $SQLDateTime <> '') … … 430 430 function LoadCommandLineParameters(): void 431 431 { 432 if (!array_key_exists('REMOTE_ADDR', $_SERVER) )432 if (!array_key_exists('REMOTE_ADDR', $_SERVER) && is_array($_SERVER['argv'])) 433 433 { 434 434 foreach ($_SERVER['argv'] as $Parameter)
Note:
See TracChangeset
for help on using the changeset viewer.