This commit is contained in:
Némunaire 2012-05-22 11:10:41 +02:00
parent f7537dab2a
commit cde7388928

View File

@ -26,7 +26,7 @@ class QuestionsFile
if (@$this->treeXML->load($this->filename)) if (@$this->treeXML->load($this->filename))
{ {
$root_nodes = $this->treeXML->getElementsByTagName("questions"); $root_nodes = $this->treeXML->getElementsByTagName("questions");
if ($root_node->length > 0) if ($root_nodes->length > 0)
$this->root_node = $root_nodes->item(0); $this->root_node = $root_nodes->item(0);
else else
throw Exception("Not a valid nemubot QuestionsFile."); throw Exception("Not a valid nemubot QuestionsFile.");