]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10785:
authorthepurpleblob <thepurpleblob>
Fri, 10 Aug 2007 07:17:46 +0000 (07:17 +0000)
committerthepurpleblob <thepurpleblob>
Fri, 10 Aug 2007 07:17:46 +0000 (07:17 +0000)
empty() changed to !isset()

Merged from STABLE_18

question/format/xml/format.php

index 27d340888b3c8a3ed76a00cdf614ae6f99f34847..e4826b3f7e1c23a6e7ebc10189b08e9289c77163 100755 (executable)
@@ -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;