aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/js/fileinfomodel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileinfomodel.js b/apps/files/js/fileinfomodel.js
index 1c850239cdc..ab205b2efb4 100644
--- a/apps/files/js/fileinfomodel.js
+++ b/apps/files/js/fileinfomodel.js
@@ -58,7 +58,7 @@
* @return {boolean} true if this is an image, false otherwise
*/
isImage: function() {
- return this.get('mimetype').substr(0, 6) === 'image/';
+ return this.get('mimetype')? this.get('mimetype').substr(0, 6) === 'image/' : false;
},
/**