From: justdave%syndicomm.com <> Date: Fri, 8 Jun 2001 04:26:49 +0000 (+0000) Subject: Hopefully the fix for bug 77778: component lists, etc stuttering due to corruption... X-Git-Tag: bugzilla-2.14~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f98ee7e227b929999275c6cd4eefefb78515932;p=thirdparty%2Fbugzilla.git Hopefully the fix for bug 77778: component lists, etc stuttering due to corruption in data/versioncache. Patch design by Terry Weissman Patch implemented by Dave Miller r= tara@tequilarista.org --- diff --git a/globals.pl b/globals.pl index 8d539f035a..0f91aeb9ec 100644 --- a/globals.pl +++ b/globals.pl @@ -580,7 +580,9 @@ sub ModTime { # This proc must be called before using legal_product or the versions array. +$::VersionTableLoaded = 0; sub GetVersionTable { + return if $::VersionTableLoaded; my $mtime = ModTime("data/versioncache"); if (!defined $mtime || $mtime eq "") { $mtime = 0; @@ -597,6 +599,7 @@ sub GetVersionTable { die "Can't generate file data/versioncache"; } } + $::VersionTableLoaded = 1; }