From 85cd400ca4a6b485adcc29ebacecb8e996f1295b Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 26 Dec 2005 22:35:47 +0000 Subject: [PATCH] Fix fatal error when $wgProfiling = false; --- includes/LinkCache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/LinkCache.php b/includes/LinkCache.php index dd87fcead2..f96fdf426e 100644 --- a/includes/LinkCache.php +++ b/includes/LinkCache.php @@ -135,8 +135,8 @@ class LinkCache { if ( 0 != $id ) { return $id; } $fname = 'LinkCache::addLinkObj'; - global $wgProfiler; - if ( isset( $wgProfiler ) ) { + global $wgProfiling, $wgProfiler; + if ( $wgProfiling && isset( $wgProfiler ) ) { $fname .= ' (' . $wgProfiler->getCurrentSection() . ')'; } -- 2.20.1