MDL-15990 - fixing bug in file_storage::create_file_from_storedfile - missing !

This commit is contained in:
mjollnir_
2008-08-09 13:33:20 +00:00
parent 33d47bb487
commit ebcac6c68b
+1 -1
View File
@@ -360,7 +360,7 @@ class file_storage {
$now = time();
if ($newrecord = $DB->get_record('files', array('id'=>$fid))) {
if (!$newrecord = $DB->get_record('files', array('id'=>$fid))) {
throw new file_exception('storedfileproblem', 'File does not exist');
}