diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-06-09 16:35:11 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-06-09 16:35:11 +0200 |
commit | 0235e5edd37478ce34eb259b48376d452cdf36c2 (patch) | |
tree | 1ed2985983ccecb4505c7c9235d6289c5e53eff6 /lib | |
parent | 262d7e659dd5afddc7339bac60da164753b243ad (diff) | |
download | nextcloud-server-0235e5edd37478ce34eb259b48376d452cdf36c2.tar.gz nextcloud-server-0235e5edd37478ce34eb259b48376d452cdf36c2.zip |
Fix fetching the mimetype id from the query
Diffstat (limited to 'lib')
-rw-r--r-- | lib/repair/repairmimetypes.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/repair/repairmimetypes.php b/lib/repair/repairmimetypes.php index 76050f32f18..fa6aa1130d6 100644 --- a/lib/repair/repairmimetypes.php +++ b/lib/repair/repairmimetypes.php @@ -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)); |