From bbf7fee3ac08952075d85f714340dfde8c1d7b8e Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 21 Apr 2019 12:57:05 -0700 Subject: [PATCH] externalstore: make ExternalStoreDB::getDomainId treat false the same as null Callers like SqlBlobStore sometimes pass in false for the current wiki Bug: T200471 Change-Id: I3025c869df07de312471d00a0ab7107c1fa14a90 --- includes/externalstore/ExternalStoreDB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/externalstore/ExternalStoreDB.php b/includes/externalstore/ExternalStoreDB.php index 75f7ccdfab..4164505822 100644 --- a/includes/externalstore/ExternalStoreDB.php +++ b/includes/externalstore/ExternalStoreDB.php @@ -166,7 +166,7 @@ class ExternalStoreDB extends ExternalStoreMedium { * @return string|bool Database domain ID or false */ private function getDomainId( array $server ) { - if ( isset( $this->params['wiki'] ) ) { + if ( isset( $this->params['wiki'] ) && $this->params['wiki'] !== false ) { return $this->params['wiki']; // explicit domain } -- 2.20.1