From 47c97990b25226bef1f708f4c1673c4ec16b2eea Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Wed, 11 Apr 2007 06:15:23 +0000 Subject: [PATCH] MDL-9241 Fixed a typo: used if($mimetype = 'application/x-pdf') instead of == --- mod/resource/type/file/resource.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index 368b32abda..f0f061181a 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -242,7 +242,7 @@ function display() { } else if ($mimetype == "text/html") { // It's a web page $resourcetype = "html"; - } else if ($mimetype == 'application/pdf' || $mimetype = 'application/x-pdf') { + } else if ($mimetype == 'application/pdf' || $mimetype == 'application/x-pdf') { $resourcetype = "pdf"; $embedded = true; } -- 2.39.5