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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-09-19 00:37:16 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-09-19 00:37:16 +0300
commit488d68de6a97b1fa8eceb7b140a391d571e1f5eb (patch)
treef3a21d570795fd7789c59401c6f7bf506a0a5c18 /lib
parent76ef4e48aa2ad9218e474bcd41a9df7a89118c92 (diff)
A few fixes by scrutinizer
Diffstat (limited to 'lib')
-rw-r--r--lib/db/op.php2
-rw-r--r--lib/downloadresponse.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/db/op.php b/lib/db/op.php
index b8a8ff03..e795da6d 100644
--- a/lib/db/op.php
+++ b/lib/db/op.php
@@ -78,7 +78,7 @@ class Op extends \OCA\Documents\Db {
AND `seq`>?
ORDER BY `seq` ASC
');
- $result = $query->execute(array($esId, $seq));
+ $query->execute(array($esId, $seq));
return $query->fetchAll();
}
diff --git a/lib/downloadresponse.php b/lib/downloadresponse.php
index a37ee32b..a24ca447 100644
--- a/lib/downloadresponse.php
+++ b/lib/downloadresponse.php
@@ -32,12 +32,12 @@ class DownloadResponse extends \OCP\AppFramework\Http\Response {
$this->view = new View('/' . $user);
if (!$this->view->file_exists($path)){
- parent::setStatus(Http::STATUS_NOT_FOUND);
+ $this->setStatus(Http::STATUS_NOT_FOUND);
}
}
public function render(){
- if (parent::getStatus() === Http::STATUS_NOT_FOUND){
+ if ($this->getStatus() === Http::STATUS_NOT_FOUND){
return '';
}
$info = $this->view->getFileInfo($this->path);