From: Nick Jenkins Date: Fri, 23 Mar 2007 08:48:27 +0000 (+0000) Subject: Suspect $dbr was undefined in this scope. X-Git-Tag: 1.31.0-rc.0~53632 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=558807bb9c4232f437795951970c7076aad0a6de;p=lhc%2Fweb%2Fwiklou.git Suspect $dbr was undefined in this scope. --- diff --git a/includes/SiteStats.php b/includes/SiteStats.php index bf2c2a54be..e320a19601 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -24,6 +24,7 @@ class SiteStats { # Update schema $u = new SiteStatsUpdate( 0, 0, 0 ); $u->doUpdate(); + $dbr = wfGetDB( DB_SLAVE ); self::$row = $dbr->selectRow( 'site_stats', '*', false, __METHOD__ ); } }