r1709 - tools/webtools/timeline
Author: sip Date: 2006-08-10 22:07:49 +0200 (Thu, 10 Aug 2006) New Revision: 1709 Modified: tools/webtools/timeline/tlcacher.php Log: timeline: Fixed notice about missing key Modified: tools/webtools/timeline/tlcacher.php =================================================================== --- tools/webtools/timeline/tlcacher.php 2006-08-10 19:49:01 UTC (rev 1708) +++ tools/webtools/timeline/tlcacher.php 2006-08-10 20:07:49 UTC (rev 1709) @@ -155,9 +155,10 @@ if (count($revline) == 4) { $rev = substr(trim($revline[0]),1); $user = trim($revline[1]); - $wikiname = $username_map[$user]; - if ($wikiname != "") + if (array_key_exists($user, $username_map)) { + $wikiname = $username_map[$user]; $user = "[[~" . $wikiname . "|" . $user . "]]"; + } $date = substr($revline[2],1,10); $time = substr($revline[2],12,5); $revurl = "[[ ".sprintf($svn_url, $rev)." | $rev ]]";
participants (1)
-
crux@crux.nu