fix for #2267, use OC_DB instead of MDB2

This commit is contained in:
Björn Schießle 2013-03-13 16:51:41 +01:00
parent ca93f6e1de
commit 92ce2bf89b

View file

@ -204,7 +204,7 @@ class Cache {
$query = \OC_DB::prepare('INSERT INTO `*PREFIX*filecache`(' . implode(', ', $queryParts) . ')'
. ' VALUES(' . implode(', ', $valuesPlaceholder) . ')');
$result = $query->execute($params);
if (\MDB2::isError($result)) {
if (\OC_DB::isError($result)) {
\OCP\Util::writeLog('cache', 'Insert to cache failed: '.$result, \OCP\Util::ERROR);
}