Merge branch 'MDL-27432_gd_error' of git://github.com/andyjdavis/moodle
[moodle.git] / lib / filestorage / file_storage.php
index 05d0157..d61e10f 100644 (file)
@@ -1008,7 +1008,7 @@ class file_storage {
         }
 
         if (!isset($file_record['filename'])) {
-            $file_record['filename'] == $file->get_filename();
+            $file_record['filename'] = $file->get_filename();
         }
 
         if (!isset($file_record['mimetype'])) {