X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Fmedia%2FJpeg.php;h=287c198c57092da24f6c4fa544f706584425fbaa;hb=0c712ce564e0bd53e28f2581a714ee8cd04b614c;hp=582269941bbf850269ee8188ba28c03e77da2141;hpb=f72f4b759591c27c03154d10528a4096b3bb6cea;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/Jpeg.php b/includes/media/Jpeg.php index 582269941b..287c198c57 100644 --- a/includes/media/Jpeg.php +++ b/includes/media/Jpeg.php @@ -175,7 +175,7 @@ class JpegHandler extends ExifBitmapHandler { } /** - * {@inheritdoc} + * @inheritDoc */ protected function transformImageMagick( $image, $params ) { global $wgUseTinyRGBForJPGThumbnails; @@ -205,7 +205,7 @@ class JpegHandler extends ExifBitmapHandler { // we'll also add TinyRGB profile to images lacking a profile, but // only if they're not low quality (which are meant to save bandwith // and we don't want to increase the filesize by adding a profile) - if ( $params['quality'] > 30 ) { + if ( isset( $params['quality'] ) && $params['quality'] > 30 ) { $profiles[] = '-'; }