Skip to content

Commit

Permalink
make comparison unambiguous #4
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Oct 7, 2015
1 parent 781c9b1 commit e6d1095
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 @@ -296,7 +296,7 @@ public function getProperties()
$proplabel = $propres->label($this->lang) ? $propres->label($this->lang) : $propres->label();
$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;

// searching for subproperties of literals too
Expand Down

0 comments on commit e6d1095

Please sign in to comment.