Merge "Support non-replicating DB clusters for static datasets"
[lhc/web/wiklou.git] / includes / db / loadbalancer / LoadBalancer.php
index 1f2f494..d96c665 100644 (file)
@@ -1402,7 +1402,7 @@ class LoadBalancer {
                }
 
                $pos = $pos ?: $this->getConnection( DB_MASTER )->getMasterPos();
-               if ( !$pos ) {
+               if ( !( $pos instanceof DBMasterPos ) ) {
                        return false; // something is misconfigured
                }