mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Check that we have defined a shadow db before trying to use it.
This commit is contained in:
parent
3c421d4cd1
commit
3ab2815fc6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user