mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
VE-2069: By default use "===" comparison in PHP (instead of "==")
This commit is contained in:
parent
53f762bfec
commit
52f7f4e083
|
@ -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' ] ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue