Merge pull request #1427 from TheSFReader/master

The mimetype/mimepart need to be readable, even from searchByMime
This commit is contained in:
Thomas Müller 2013-02-04 06:44:40 -08:00
commit 301afac291
1 changed files with 7 additions and 1 deletions

View File

@ -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;
}
/**