summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--globals.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index c360c5652..a22cef196 100644
--- a/globals.pl
+++ b/globals.pl
@@ -351,7 +351,7 @@ $::VersionTableLoaded = 0;
sub GetVersionTable {
return if $::VersionTableLoaded;
my $mtime = ModTime("data/versioncache");
- if (!defined $mtime || $mtime eq "") {
+ if (!defined $mtime || $mtime eq "" || !-r "data/versioncache") {
$mtime = 0;
}
if (time() - $mtime > 3600) {