X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=f9f499a10d547982ba66c9304bcf0ced58cfd80e;hb=5f11f7818c3e3f82245ce92aa699e08fa086b70a;hp=b3ccc5675aba3097029f368839c6ca454b996957;hpb=69ae945e8d39972a07bea89ddb64bc0189b43ac2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index b3ccc5675a..f9f499a10d 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3518,7 +3518,7 @@ function wfIsBadImage( $name, $contextTitle = false, $blacklist = null ) { # Run the extension hook $bad = false; if ( !Hooks::run( 'BadImage', [ $name, &$bad ] ) ) { - return $bad; + return (bool)$bad; } $cache = ObjectCache::getLocalServerInstance( 'hash' );