From 228b6f6b1dae76ea39668764e0ea60ff6d57a8b4 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Fri, 10 Aug 2007 07:17:46 +0000 Subject: [PATCH] MDL-10785: empty() changed to !isset() Merged from STABLE_18 --- 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 27d340888b..e4826b3f7e 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; -- 2.39.5