]> git.mjollnir.org Git - moodle.git/commitdiff
BUG 5662 - bad check for 1.6 version.
authordanmarsden <danmarsden>
Wed, 31 May 2006 20:28:18 +0000 (20:28 +0000)
committerdanmarsden <danmarsden>
Wed, 31 May 2006 20:28:18 +0000 (20:28 +0000)
mod/choice/restorelib.php

index 3aca867a64b0f299f380318c31b62f1afd43f60a..83ab0461e7eda1c8314daab464c3ac435b637787 100644 (file)
@@ -60,7 +60,7 @@
 
             //To mantain compatibilty, in 1.4 the publish setting meaning has changed. We
             //have to modify some things it if the release field isn't present in the backup file.
-            if (! isset($info['MOD']['#']['SHOWANSWERS']['0']['#'])) {   //check for previous versions
+            if (! isset($info['MOD']['#']['SHOWRESULTS']['0']['#'])) {   //check for previous versions
                 if (! isset($info['MOD']['#']['RELEASE']['0']['#'])) {  //It's a pre-14 backup filea
                     //Set the allowupdate field
                     if ($choice->publish == 0) {