VE-2069: By default use "===" comparison in PHP (instead of "==")

This commit is contained in:
Inez Korczynski 2015-12-07 22:37:56 +00:00
parent 53f762bfec
commit 52f7f4e083

View file

@ -89,7 +89,7 @@ class PortableInfoboxDataService {
private function getImageFromOneInfoboxData( $infoboxData ) {
$images = [];
foreach ( $infoboxData as $infoboxDataField ) {
if ( $infoboxDataField[ 'type' ] == self::IMAGE_FIELD_TYPE && isset( $infoboxDataField[ 'data' ] ) ) {
if ( $infoboxDataField[ 'type' ] === self::IMAGE_FIELD_TYPE && isset( $infoboxDataField[ 'data' ] ) ) {
$images = array_merge( $images, $this->getImagesFromOneNodeImageData( $infoboxDataField[ 'data' ] ) );
}
}