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