mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +00:00
better checking form mimetype!=null in setMimeType()
This commit is contained in:
parent
38b0cbda7f
commit
8e47c444b2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user