Skip to content

Commit

Permalink
make comparison unambiguous #2
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Oct 7, 2015
1 parent 516e23f commit 8f604b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/Concept.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function getMappingProperties()
$propres = new EasyRdf_Resource($prop, $this->graph);
$proplabel = $propres->label($this->lang) ? $propres->label($this->lang) : $propres->label(); // current language
$propobj = new ConceptProperty($prop, $proplabel);
if ($propobj->getLabel()) // only display properties for which we have a label
if ($propobj->getLabel() !== null) // only display properties for which we have a label
$ret[$prop] = $propobj;

// Iterating through every resource and adding these to the data object.
Expand Down

0 comments on commit 8f604b5

Please sign in to comment.