From 2cc1bdff41ddda5ea6a1b185d2dcbee4d399a4e4 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 26 May 2006 01:40:26 +0000 Subject: [PATCH] woops --- includes/Image.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/Image.php b/includes/Image.php index 0f2251c83f..8dba559c05 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1169,9 +1169,11 @@ class Image unlink( $thumbPath ); } else { // All good - wfDebugLog( 'thumbnail', - sprintf( 'thumbnail maybe failed on %s, non-empty output kept: "%s" from "%s"', - wfHostname(), trim($err), $cmd ) ); + if( $err !== true ) { + wfDebugLog( 'thumbnail', + sprintf( 'thumbnail maybe failed on %s, non-empty output kept: "%s" from "%s"', + wfHostname(), trim($err), $cmd ) ); + } $err = true; } } -- 2.20.1