summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/mimeicon.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/ajax/mimeicon.php')
-rw-r--r--apps/files/ajax/mimeicon.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/ajax/mimeicon.php b/apps/files/ajax/mimeicon.php
index fdbcc441a78..c531f5a3e81 100644
--- a/apps/files/ajax/mimeicon.php
+++ b/apps/files/ajax/mimeicon.php
@@ -1,4 +1,6 @@
<?php
\OC::$server->getSession()->close();
-print OC_Helper::mimetypeIcon($_GET['mime']);
+$mime = isset($_GET['mime']) ? $_GET['mime'] : '';
+
+print OC_Helper::mimetypeIcon($mime);