mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 02:52:40 +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) { /* {{{ */
|
function setMimeType($newMimetype) { /* {{{ */
|
||||||
$db = $this->_document->getDMS()->getDB();
|
$db = $this->_document->getDMS()->getDB();
|
||||||
|
|
||||||
|
if(!$newMimetype)
|
||||||
|
return false;
|
||||||
|
|
||||||
$newMimetype = trim($newMimetype);
|
$newMimetype = trim($newMimetype);
|
||||||
|
|
||||||
if(!$newMimetype)
|
if(!$newMimetype)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user