From 8e73d88e8e3f2022bd7a1b8e3f8f25f8853b2485 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 22 Nov 2017 13:50:24 +0100 Subject: [PATCH] hasConverter() checks if cmd is actually set --- SeedDMS_Preview/Preview/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SeedDMS_Preview/Preview/Base.php b/SeedDMS_Preview/Preview/Base.php index 25a36cdee..e09470330 100644 --- a/SeedDMS_Preview/Preview/Base.php +++ b/SeedDMS_Preview/Preview/Base.php @@ -113,7 +113,7 @@ class SeedDMS_Preview_Base { * @return boolean true if converter exists, otherwise false */ function hasConverter($mimetype) { /* {{{ */ - return array_key_exists($mimetype, $this->converters); + return array_key_exists($mimetype, $this->converters) && $this->converters[$mimetype]; } /* }}} */ }