[Pkg-owncloud-commits] [owncloud] 354/457: Fix fetching the mimetype id from the query
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:42 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 0235e5edd37478ce34eb259b48376d452cdf36c2
Author: Joas Schilling <nickvergessen at owncloud.com>
Date: Tue Jun 9 16:35:11 2015 +0200
Fix fetching the mimetype id from the query
---
lib/repair/repairmimetypes.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/repair/repairmimetypes.php b/lib/repair/repairmimetypes.php
index 76050f3..fa6aa11 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));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list