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
Родитель 3c421d4cd1
Коммит 3ab2815fc6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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