From 2cc6d2e3f98cc17c0c28450e7124da5e3636aa22 Mon Sep 17 00:00:00 2001
From: fbsanchez <fborja.sanchez@artica.es>
Date: Mon, 4 Jul 2016 10:50:26 +0200
Subject: [PATCH] minor fix

---
 pandora_console/include/functions_filemanager.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php
index d37ab1e334..a729eab1f3 100644
--- a/pandora_console/include/functions_filemanager.php
+++ b/pandora_console/include/functions_filemanager.php
@@ -92,7 +92,7 @@ if (!function_exists ('mime_content_type')) {
 		);
 		
 		$ext_fields = explode ('.', $filename);
-		$ext = array_pop ();
+		$ext = array_pop ($ext_fields);
 		$ext = strtolower ($ext);
 		if (array_key_exists ($ext, $mime_types)) {
 			return $mime_types[$ext];