mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
hasConverter() checks if cmd is actually set
This commit is contained in:
parent
26d8c08ce9
commit
8e73d88e8e
|
@ -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];
|
||||
} /* }}} */
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user