mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Fix fetching the mimetype id from the query
This commit is contained in:
parent
262d7e659d
commit
0235e5edd3
1 changed files with 2 additions and 1 deletions
|
|
@ -121,7 +121,8 @@ class RepairMimeTypes extends BasicEmitter implements \OC\RepairStep {
|
|||
}
|
||||
|
||||
// get target mimetype id
|
||||
$mimetypeId = \OC_DB::executeAudited(self::getIdStmt(), array($mimetype));
|
||||
$result = \OC_DB::executeAudited(self::getIdStmt(), array($mimetype));
|
||||
$mimetypeId = $result->fetchOne();
|
||||
|
||||
// change mimetype for files with x extension
|
||||
\OC_DB::executeAudited(self::updateByNameStmt(), array($mimetypeId, $mimetypeId, '%.' . $extension));
|
||||
|
|
|
|||
Loading…
Reference in a new issue