hasConverter() checks if cmd is actually set

This commit is contained in:
Uwe Steinmann 2017-11-22 13:50:24 +01:00
parent 26d8c08ce9
commit 8e73d88e8e

View File

@ -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];
} /* }}} */
}