From: MatmaRex Date: Mon, 10 Jun 2013 17:43:47 +0000 (+0200) Subject: DifferenceEngine: Don't display empty header row X-Git-Tag: 1.31.0-rc.0~19338^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=7599f1a49b87c0641727d398ef4bf9771075ec29;p=lhc%2Fweb%2Fwiklou.git DifferenceEngine: Don't display empty header row This prevents a gap from appearing, and the resulting code will be slightly cleaner as well. Shouldn't matter in core, but does matter for extensions displaying diffs like AbuseFilter. Change-Id: I9e3e74226a23c0a18db091bc1550b694d9d08118 --- diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index 4ee066e9e3..72135f96fe 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -998,11 +998,13 @@ class DifferenceEngine extends ContextSource { $colspan = 1; $multiColspan = 2; } - $header .= " - - {$otitle} - {$ntitle} - "; + if ( $otitle || $ntitle ) { + $header .= " + + {$otitle} + {$ntitle} + "; + } } if ( $multi != '' ) {