aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/compareParserCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/compareParserCache.php')
-rw-r--r--maintenance/compareParserCache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintenance/compareParserCache.php b/maintenance/compareParserCache.php
index 21cddaef3eea..246b07c63bd6 100644
--- a/maintenance/compareParserCache.php
+++ b/maintenance/compareParserCache.php
@@ -103,7 +103,7 @@ class CompareParserCache extends Maintenance {
$formatter = new UnifiedDiffFormatter();
$unifiedDiff = $formatter->format( $diffs );
- if ( strlen( $unifiedDiff ) ) {
+ if ( $unifiedDiff !== '' ) {
$this->output( "differences found:\n\n$unifiedDiff\n\n" );
++$withdiff;
} else {