From cde7388928d0b1e81409f128e37447f8df7e8cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9munaire?= Date: Tue, 22 May 2012 11:10:41 +0200 Subject: [PATCH] Typo :s --- QuestionsFile.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuestionsFile.class.php b/QuestionsFile.class.php index ed8b32b..ee421cb 100644 --- a/QuestionsFile.class.php +++ b/QuestionsFile.class.php @@ -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.");