X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Futils%2FMWFileProps.php;h=19a3ce5bedee960ee274676affcffa6f5b66780e;hb=d09d0cc568ad2a56360a3861ae9dba26d584ecc8;hp=a20435e17de780f3c05c68438554a680812816b5;hpb=50f6b24ee614196aae44dd67599f4c36ac6ade0d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/MWFileProps.php b/includes/utils/MWFileProps.php index a20435e17d..19a3ce5bed 100644 --- a/includes/utils/MWFileProps.php +++ b/includes/utils/MWFileProps.php @@ -104,11 +104,7 @@ class MWFileProps { # NOTE: $gis[2] contains a code for the image type. This is no longer used. $info['width'] = $gis[0]; $info['height'] = $gis[1]; - if ( isset( $gis['bits'] ) ) { - $info['bits'] = $gis['bits']; - } else { - $info['bits'] = 0; - } + $info['bits'] = $gis['bits'] ?? 0; return $info; }