better checking form mimetype!=null in setMimeType()

This commit is contained in:
Uwe Steinmann 2022-11-15 16:04:15 +01:00
parent 38b0cbda7f
commit 8e47c444b2

View File

@ -3237,6 +3237,9 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
function setMimeType($newMimetype) { /* {{{ */
$db = $this->_document->getDMS()->getDB();
if(!$newMimetype)
return false;
$newMimetype = trim($newMimetype);
if(!$newMimetype)