From ebcac6c68be82309aba597e2b72f675caa6d87e8 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Sat, 9 Aug 2008 13:33:20 +0000 Subject: [PATCH] MDL-15990 - fixing bug in file_storage::create_file_from_storedfile - missing ! --- lib/file/file_storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file/file_storage.php b/lib/file/file_storage.php index 38093c9659..353bf39f56 100644 --- a/lib/file/file_storage.php +++ b/lib/file/file_storage.php @@ -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'); } -- 2.39.5