Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added little check

  • Loading branch information...
commit 16f77249aa17fabe8d50ac35436f182007c56301 1 parent 486f978
authored June 01, 2003

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  backup/mod/assignment/backuplib.php
6  backup/mod/assignment/backuplib.php
@@ -55,8 +55,10 @@ function assignment_backup_mods($bf,$preferences) {
55 55
             }
56 56
         }
57 57
         //if we've selected to backup users info, then backup files too
58  
-        if ($preferences->mods["assignment"]->userinfo) {
59  
-            $status = backup_assignment_files($bf,$preferences);
  58
+        if ($status) {
  59
+            if ($preferences->mods["assignment"]->userinfo) {
  60
+                $status = backup_assignment_files($bf,$preferences);
  61
+            }
60 62
         }
61 63
         return $status;  
62 64
     }

0 notes on commit 16f7724

Please sign in to comment.
Something went wrong with that request. Please try again.