From: stronk7 Date: Sun, 1 Jun 2003 10:38:39 +0000 (+0000) Subject: Added little check X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=16f77249aa17fabe8d50ac35436f182007c56301;p=moodle.git Added little check --- diff --git a/backup/mod/assignment/backuplib.php b/backup/mod/assignment/backuplib.php index 8329ce752a..fe5e3eeeea 100644 --- a/backup/mod/assignment/backuplib.php +++ b/backup/mod/assignment/backuplib.php @@ -55,8 +55,10 @@ } } //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; }