From: Niklas Laxström Date: Sat, 11 Sep 2010 15:48:21 +0000 (+0000) Subject: $dbr was undefined X-Git-Tag: 1.31.0-rc.0~35000 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=8e9cc0accf2f431190689dc28135d657c89b0966;p=lhc%2Fweb%2Fwiklou.git $dbr was undefined --- diff --git a/includes/MessageBlobStore.php b/includes/MessageBlobStore.php index 51f3f72d6a..cc8543fa00 100644 --- a/includes/MessageBlobStore.php +++ b/includes/MessageBlobStore.php @@ -84,6 +84,7 @@ class MessageBlobStore { if ( $success ) { if ( $dbw->affectedRows() == 0 ) { // Blob was already present, fetch it + $dbr = wfGetDB( DB_SLAVE ); $blob = $dbr->selectField( 'msg_resource', 'mr_blob', array( 'mr_resource' => $module, 'mr_lang' => $lang,