Author: c_b_dvs
Description:
I've been debugging an issue where literal object values of zero are converted into blank nodes. The particular property for this object has units associated with it, although I doubt that this contributes to the bug.
I believe that the problem is in the check for blank nodes in the getTripleList function in SMW_Exp_Data.php. If I understand things correctly, then this line:
if ( ( $name == '' ) || ( $name[0] == '_' ) ) {
should be changed to this:
if ( ( $name === '' ) || ( $name[0] === '_' ) ) {
...so that it does not interpret 0 as an empty string.
Chris
Version: unspecified
Severity: normal