Merge branch 'master' of ssh://p0m.fr:6224/git/nemubot_askweb

This commit is contained in:
Bertrand 2012-05-22 10:50:12 +02:00
commit db237fa932

View File

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