Skip to content

Commit

Permalink
Fixed internaltype/internalcode if explicitely set to null
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Aug 10, 2019
1 parent 15de87e commit 23d0a5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mwlib/src/MW/Criteria/Attribute/Standard.php
Expand Up @@ -75,7 +75,7 @@ public function getType()
*/
public function getInternalType()
{
return isset( $this->values['internaltype'] ) ? $this->values['internaltype'] : $this->getType();
return array_key_exists( 'internaltype', $this->values ) ? $this->values['internaltype'] : $this->getType();
}


Expand All @@ -97,7 +97,7 @@ public function getCode()
*/
public function getInternalCode()
{
return isset( $this->values['internalcode'] ) ? $this->values['internalcode'] : $this->getCode();
return array_key_exists( 'internalcode', $this->values ) ? $this->values['internalcode'] : $this->getCode();
}


Expand All @@ -108,7 +108,7 @@ public function getInternalCode()
*/
public function getInternalDeps()
{
return isset( $this->values['internaldeps'] ) ? $this->values['internaldeps'] : [];
return isset( $this->values['internaldeps'] ) ? (array) $this->values['internaldeps'] : [];
}


Expand Down

0 comments on commit 23d0a5a

Please sign in to comment.