Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/files
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-10-31 13:27:42 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-10-31 13:27:42 +0400
commit266f068238922b32333c215705aec07d53e6bce0 (patch)
tree8cb3d03349c1faa17a08510b06eb6ae0a96a1486 /lib/files
parent93f6fca35dff090f197d2565ac64d7c35bc0a8bf (diff)
remove leftover execute() and unused variables
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/cache/cache.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/files/cache/cache.php b/lib/files/cache/cache.php
index c664b8380cb..ca739f8d1e2 100644
--- a/lib/files/cache/cache.php
+++ b/lib/files/cache/cache.php
@@ -59,7 +59,7 @@ class Cache {
if ($row = $result->fetchRow()) {
$this->numericId = $row['numeric_id'];
} else {
- $result = \OC_DB::executeAudited(
+ \OC_DB::executeAudited(
'INSERT INTO `*PREFIX*storages`(`id`) VALUES(?)',
array($this->storageId)
);
@@ -86,7 +86,7 @@ class Cache {
if ($row = $result->fetchRow()) {
$this->mimetypeIds[$mime] = $row['id'];
} else {
- $result = \OC_DB::executeAudited(
+ \OC_DB::executeAudited(
'INSERT INTO `*PREFIX*mimetypes`(`mimetype`) VALUES(?)',
array($mime)
);
@@ -364,7 +364,7 @@ class Cache {
$this->remove($child['path']);
}
}
- $result = \OC_DB::executeAudited('
+ \OC_DB::executeAudited('
DELETE FROM `*PREFIX*filecache` WHERE `fileid` = ?',
array($entry['fileid'])
);
@@ -401,7 +401,7 @@ class Cache {
foreach ($childEntries as $child) {
$targetPath = $target . substr($child['path'], $sourceLength);
- $result = \OC_DB::executeAudited($query,
+ \OC_DB::executeAudited($query,
array(
$targetPath,
md5($targetPath),
@@ -411,7 +411,7 @@ class Cache {
}
}
- $result = \OC_DB::executeAudited('
+ \OC_DB::executeAudited('
UPDATE `*PREFIX*filecache`
SET `path` = ?, `path_hash` = ?, `name` = ?, `parent` =?
WHERE `fileid` = ?',
@@ -423,12 +423,12 @@ class Cache {
* remove all entries for files that are stored on the storage from the cache
*/
public function clear() {
- $result = \OC_DB::executeAudited('
+ \OC_DB::executeAudited('
DELETE FROM `*PREFIX*filecache` WHERE `storage` = ?',
array($this->numericId)
);
- $result = \OC_DB::executeAudited('
+ \OC_DB::executeAudited('
DELETE FROM `*PREFIX*storages` WHERE `id` = ?',
array($this->storageId)
);
@@ -514,7 +514,6 @@ class Cache {
WHERE ' . $where . ' AND `storage` = ?',
array($mimetype, $this->numericId)
);
- $result = $query->execute(array($mimetype, $this->numericId));
$files = array();
while ($row = $result->fetchRow()) {