From 18078131c59941e2ac1163f782956050e91be167 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 5 Oct 2012 07:29:36 +0000 Subject: [PATCH] else { if } makes no sense I complained about this in gerrit but looks like my comment was not saved Change-Id: Ie570bdaf89e93628de730102587064ee0495fb1b --- includes/db/Database.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/db/Database.php b/includes/db/Database.php index c082cc9811..0a51f490ae 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -2925,11 +2925,9 @@ abstract class DatabaseBase implements DatabaseType { // started and comitted. wfWarn( "$fname: Transaction already in progress (from {$this->mTrxFname}), " . " performing implicit commit!" ); - } else { - if ( $wgDebugDBTransactions ) { - wfDebug( "$fname: Transaction already in progress (from {$this->mTrxFname}), " . - " performing implicit commit!\n" ); - } + } elseif ( $wgDebugDBTransactions ) { + wfDebug( "$fname: Transaction already in progress (from {$this->mTrxFname}), " . + " performing implicit commit!\n" ); } $this->doCommit( $fname ); -- 2.20.1