]> git.mjollnir.org Git - moodle.git/commitdiff
Added little check
authorstronk7 <stronk7>
Sun, 1 Jun 2003 10:38:39 +0000 (10:38 +0000)
committerstronk7 <stronk7>
Sun, 1 Jun 2003 10:38:39 +0000 (10:38 +0000)
backup/mod/assignment/backuplib.php

index 8329ce752a97f8e7d81e68da94da79bd68925487..fe5e3eeeea1190f7b3c96805708fa8316fa54a1e 100644 (file)
             }
         }
         //if we've selected to backup users info, then backup files too
-        if ($preferences->mods["assignment"]->userinfo) {
-            $status = backup_assignment_files($bf,$preferences);
+        if ($status) {
+            if ($preferences->mods["assignment"]->userinfo) {
+                $status = backup_assignment_files($bf,$preferences);
+            }
         }
         return $status;  
     }