A few fixes by scrutinizer
This commit is contained in:
parent
76ef4e48aa
commit
488d68de6a
@ -42,7 +42,7 @@ define("owncloud/widgets/ocToolbar",
|
||||
ocClose.startup();
|
||||
});
|
||||
return callback(ocToolbar);
|
||||
};
|
||||
}
|
||||
// init
|
||||
makeWidget(function (widget) {
|
||||
return callback(widget);
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user