Permalink
Browse files

Added little check

  • Loading branch information...
1 parent 486f978 commit 16f77249aa17fabe8d50ac35436f182007c56301 stronk7 committed Jun 1, 2003
Showing with 4 additions and 2 deletions.
  1. +4 −2 backup/mod/assignment/backuplib.php
View
6 backup/mod/assignment/backuplib.php
@@ -55,8 +55,10 @@ function assignment_backup_mods($bf,$preferences) {
}
}
//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;
}

0 comments on commit 16f7724

Please sign in to comment.