From: Antoine Musso Date: Wed, 31 Aug 2005 14:58:36 +0000 (+0000) Subject: Might or might not fix a php5 notice error (undefined variable) X-Git-Tag: 1.6.0~1745 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=0f95931fb8f617d6b649a15dcf481031ed14e794;p=lhc%2Fweb%2Fwiklou.git Might or might not fix a php5 notice error (undefined variable) --- 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)) {