From: thepurpleblob Date: Fri, 10 Aug 2007 07:17:46 +0000 (+0000) Subject: MDL-10785: X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=228b6f6b1dae76ea39668764e0ea60ff6d57a8b4;p=moodle.git MDL-10785: empty() changed to !isset() Merged from STABLE_18 --- 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;