Might or might not fix a php5 notice error (undefined variable)
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 31 Aug 2005 14:58:36 +0000 (14:58 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 31 Aug 2005 14:58:36 +0000 (14:58 +0000)
includes/GlobalFunctions.php

index d338709..b09eef7 100644 (file)
@@ -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)) {