diff --git a/js/widgets/ocToolbar.js b/js/widgets/ocToolbar.js index e6432172..c0aa96ab 100644 --- a/js/widgets/ocToolbar.js +++ b/js/widgets/ocToolbar.js @@ -42,7 +42,7 @@ define("owncloud/widgets/ocToolbar", ocClose.startup(); }); return callback(ocToolbar); - }; + } // init makeWidget(function (widget) { return callback(widget); 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);