Commit e3745f0f authored by terry%mozilla.org's avatar terry%mozilla.org

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

parent e3291163
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment