woops
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 26 May 2006 01:40:26 +0000 (01:40 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 26 May 2006 01:40:26 +0000 (01:40 +0000)
includes/Image.php

index 0f2251c..8dba559 100644 (file)
@@ -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;
                        }
                }