From: mjollnir_ Date: Sat, 9 Aug 2008 13:33:20 +0000 (+0000) Subject: MDL-15990 - fixing bug in file_storage::create_file_from_storedfile - missing ! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ebcac6c68be82309aba597e2b72f675caa6d87e8;p=moodle.git MDL-15990 - fixing bug in file_storage::create_file_from_storedfile - missing ! --- 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'); }