Details
Description
If the value is 0, getpath() in question/format/xml/format.php returns the default value instead of 0 because the empty() check counts 0 as empty.
To replicate, import a matching question with shuffleanswers set to 0. It will be imported with shuffleanswers set to the default value 1.