Merge pull request #1427 from TheSFReader/master
The mimetype/mimepart need to be readable, even from searchByMime
This commit is contained in:
commit
301afac291
|
@ -410,7 +410,13 @@ class Cache {
|
|||
);
|
||||
$mimetype = $this->getMimetypeId($mimetype);
|
||||
$result = $query->execute(array($mimetype, $this->numericId));
|
||||
return $result->fetchAll();
|
||||
$files = array();
|
||||
while ($row = $result->fetchRow()) {
|
||||
$row['mimetype'] = $this->getMimetype($row['mimetype']);
|
||||
$row['mimepart'] = $this->getMimetype($row['mimepart']);
|
||||
$files[] = $row;
|
||||
}
|
||||
return $files;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue