Fix bad ID loading

This commit is contained in:
Némunaire 2012-05-24 16:03:32 +02:00
commit f8b1fbbd82
2 changed files with 3 additions and 4 deletions

View file

@ -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;