X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecialpage%2FImageQueryPage.php;h=8df64937e55427589b5b4f1e7adbda97dca6e9d7;hb=32d8dd04f09f4c031dbb9db99d8ed5fc6b8a0ad6;hp=49aaffd004ef147e4d2ef1c3f35b454c649fcdcd;hpb=478a58f63101f2b47d18a618296b5e7970fa3f24;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specialpage/ImageQueryPage.php b/includes/specialpage/ImageQueryPage.php index 49aaffd004..8df64937e5 100644 --- a/includes/specialpage/ImageQueryPage.php +++ b/includes/specialpage/ImageQueryPage.php @@ -52,7 +52,7 @@ abstract class ImageQueryPage extends QueryPage { $i = 0; foreach ( $res as $row ) { $i++; - $namespace = isset( $row->namespace ) ? $row->namespace : NS_FILE; + $namespace = $row->namespace ?? NS_FILE; $title = Title::makeTitleSafe( $namespace, $row->title ); if ( $title instanceof Title && $title->getNamespace() == NS_FILE ) { $gallery->add( $title, $this->getCellHtml( $row ) );