]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Fixes/rewrites
[mailer.git] / inc / functions.php
index 7e6e5f8adb8056580c5f65314a41f357a9aa2b69..f539b61a2d36b5f7ec9f9dc6a30c37ff87ad375b 100644 (file)
@@ -266,7 +266,7 @@ function generatePassword ($length = '0', $exclude =  array()) {
 // Generates a human-readable timestamp from the Uni* stamp
 function generateDateTime ($time, $mode = '0') {
        // If the stamp is zero it mostly didn't "happen"
-       if ($time == '0') {
+       if (($time == '0') || (is_null($time))) {
                // Never happend
                return '{--NEVER_HAPPENED--}';
        } // END - if