Fix bad ID loading
This commit is contained in:
parent
e0e294e784
commit
f8b1fbbd82
2 changed files with 3 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ class Question
|
|||
{
|
||||
if (isset($node))
|
||||
{
|
||||
$this->id = $node->getAttribute("id");
|
||||
$this->id = $node->getAttribute("xml:id");
|
||||
$this->added_time = $node->getAttribute("addedtime");
|
||||
if (intval($node->getAttribute("validated")))
|
||||
$this->validated = true;
|
||||
|
|
|
|||
Reference in a new issue