A few fixes by scrutinizer

This commit is contained in:
Victor Dubiniuk 2015-09-19 00:37:16 +03:00
parent 76ef4e48aa
commit 488d68de6a
3 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ define("owncloud/widgets/ocToolbar",
ocClose.startup();
});
return callback(ocToolbar);
};
}
// init
makeWidget(function (widget) {
return callback(widget);

View File

@ -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();
}

View File

@ -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);