]> git.mjollnir.org Git - moodle.git/commitdiff
Bug returning status
authorstronk7 <stronk7>
Sat, 10 May 2003 17:31:33 +0000 (17:31 +0000)
committerstronk7 <stronk7>
Sat, 10 May 2003 17:31:33 +0000 (17:31 +0000)
backup/lib.php

index 3076aaa1605fec2dfadfe51d90c5068054bf6032..8b3bb4af2ba7da7f09fbec852b39501fc4b2485c 100644 (file)
             if ($file=="." || $file=="..") {
                 continue;
             }
-            return backup_copy_file ("$from_file/$file","$to_file/$file");
+            $status = backup_copy_file ("$from_file/$file","$to_file/$file");
         }
-        return closedir($dir);
+        closedir($dir);
+        return $status;
     }
     ///Ends copy file/dirs functions
     // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++