Map empty mimetypes to octet-stream for Oracle DBMS.

This commit is contained in:
Andreas Fischer 2013-10-29 14:18:42 +01:00
parent fa6ae81149
commit b3e39dd3d9

View file

@ -64,6 +64,10 @@ class Cache {
* @return int
*/
public function getMimetypeId($mime) {
if (empty($mime)) {
// Can not insert empty string into Oracle NOT NULL column.
$mime = 'application/octet-stream';
}
if (empty(self::$mimetypeIds)) {
$this->loadMimetypes();
}