One thing that's interesting is that all the fieldValue are strings. So if a submission has theTranslatedOverallSimilarity field name, but doesn't have an actual score to go with that, then the results give an empty string instead of null. And php will read this empty string as 0 when type-casted to an int (which it does in lib.php)
One thing that's interesting is that all the
fieldValue
are strings. So if a submission has theTranslatedOverallSimilarity
field name, but doesn't have an actual score to go with that, then the results give an empty string instead ofnull
. And php will read this empty string as 0 when type-casted to an int (which it does inlib.php
)