From 07f59df83b57157910051adb92972947a2a7ed98 Mon Sep 17 00:00:00 2001 From: Nick Jenkins Date: Wed, 29 Nov 2006 12:45:47 +0000 Subject: [PATCH] $fname is not defined / null in these contexts, replacing with __METHOD__ --- includes/Block.php | 2 +- includes/SiteStats.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Block.php b/includes/Block.php index 29709d2728..b06c8cabcf 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -410,7 +410,7 @@ class Block wfDebug("Doing retroactive autoblocks for " . $this->mAddress . "\n"); $row = $dbr->selectRow( 'recentchanges', array( 'rc_ip' ), array( 'rc_user_text' => $this->mAddress ), - $fname, array( 'ORDER BY' => 'rc_timestamp DESC' ) ); + __METHOD__ , array( 'ORDER BY' => 'rc_timestamp DESC' ) ); if ( !$row || !$row->rc_ip ) { #No results, don't autoblock anything diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 50a2204f40..e2774a1423 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -26,7 +26,7 @@ class SiteStats { # Update schema $u = new SiteStatsUpdate( 0, 0, 0 ); $u->doUpdate(); - self::$row = $dbr->selectRow( 'site_stats', '*', false, $fname ); + self::$row = $dbr->selectRow( 'site_stats', '*', false, __METHOD__ ); } } -- 2.20.1