Check that we have defined a shadow db before trying to use it.

This commit is contained in:
terry%mozilla.org 2000-02-18 19:33:42 +00:00
parent 3c421d4cd1
commit 3ab2815fc6

View File

@ -80,7 +80,7 @@ sub ConnectToDatabase {
my ($useshadow) = (@_);
if (!defined $::db) {
my $name = $db_name;
if ($useshadow) {
if ($useshadow && Param("shadowdb")) {
$name = Param("shadowdb");
$::dbwritesallowed = 0;
}