From 0f95931fb8f617d6b649a15dcf481031ed14e794 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 31 Aug 2005 14:58:36 +0000 Subject: [PATCH] Might or might not fix a php5 notice error (undefined variable) --- includes/GlobalFunctions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index d33870929a..b09eef7392 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1114,6 +1114,7 @@ define('TS_ORACLE', 5); * @return string Time in the format specified in $outputtype */ function wfTimestamp($outputtype=TS_UNIX,$ts=0) { + $uts = 0; if ($ts==0) { $uts=time(); } elseif (preg_match("/^(\d{4})\-(\d\d)\-(\d\d) (\d\d):(\d\d):(\d\d)$/",$ts,$da)) { -- 2.20.1