From 581ca3d3547294ba50fa11e0dfecbf53c2987e5b Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Fri, 10 Aug 2007 07:16:36 +0000 Subject: [PATCH] MDL-10785: empty() changed to !isset() --- question/format/xml/format.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/format/xml/format.php b/question/format/xml/format.php index 27d340888b3..e4826b3f7e1 100755 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -94,7 +94,7 @@ class qformat_xml extends qformat_default { */ function getpath( $xml, $path, $default, $istext=false, $error='' ) { foreach ($path as $index) { - if (empty($xml[$index])) { + if (!isset($xml[$index])) { if (!empty($error)) { $this->error( $error ); return false;