зеркало из https://github.com/mozilla/gecko-dev.git
Check that we have defined a shadow db before trying to use it.
This commit is contained in:
Родитель
3c421d4cd1
Коммит
3ab2815fc6
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче