[VD:abstract,Dropbox,MySQL] fix mime type search logic

This commit is contained in:
nao-pon
2015-05-22 10:49:41 +09:00
parent da685c961d
commit 70a47b0a3d
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ class elFinderVolumeMySQL extends elFinderVolumeDriver {
if (($res = $this->query($sql))) {
while ($row = $res->fetch_assoc()) {
if ($this->mimeAccepted($row['mime'], array_merge($mimes, $this->onlyMimes))) {
if ($this->mimeAccepted($row['mime'], $mimes)) {
$id = $row['id'];
if ($row['parent_id']) {
$row['phash'] = $this->encode($row['parent_id']);