diff options
-rw-r--r-- | lib/Detail.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Detail.php b/lib/Detail.php index 935ed3f..ddb2b22 100644 --- a/lib/Detail.php +++ b/lib/Detail.php @@ -55,8 +55,9 @@ class Detail implements IDetail { public function getInformation() { /** @var IRequest $request */ $request = \OC::$server->query(IRequest::class); - if ($request->getParam('details')) { - return $request->getParam('details')[$this->getSection()][$this->getIdentifier()]; + $request = $request->getParam('details'); + if ($request && isset($request[$this->getSection()][$this->getIdentifier()])) { + return $request[$this->getSection()][$this->getIdentifier()]; } return $this->information; } @@ -68,4 +69,4 @@ class Detail implements IDetail { public function getIdentifier() { return $this->identifier; } -}
\ No newline at end of file +} |