aboutsummaryrefslogtreecommitdiffstats
path: root/includes/cache/BacklinkCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/cache/BacklinkCache.php')
-rw-r--r--includes/cache/BacklinkCache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/cache/BacklinkCache.php b/includes/cache/BacklinkCache.php
index c2fb52afdc8c..269630276fc0 100644
--- a/includes/cache/BacklinkCache.php
+++ b/includes/cache/BacklinkCache.php
@@ -135,7 +135,7 @@ class BacklinkCache {
$this->partitionCache = [];
$this->fullResultCache = [];
$this->wanCache->touchCheckKey( $this->makeCheckKey() );
- unset( $this->db );
+ $this->db = null;
}
/**
@@ -153,7 +153,7 @@ class BacklinkCache {
* @return IDatabase
*/
protected function getDB() {
- if ( !isset( $this->db ) ) {
+ if ( $this->db === null ) {
$this->db = wfGetDB( DB_REPLICA );
}