Skip to content

Commit 73c249d

Browse files
committed
fix: Properly pass array instead of stdClass for initial state
fixes #989 Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 6dca9d7 commit 73c249d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Controller/PageController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function index() : TemplateResponse {
6868

6969
$this->initialState->provideInitialState(
7070
'config',
71-
\OCP\Server::get(SettingsService::class)->getPublic($this->userSession->getUser()->getUID())
71+
(array)\OCP\Server::get(SettingsService::class)->getPublic($this->userSession->getUser()->getUID())
7272
);
7373

7474
$this->initialState->provideInitialState(

0 commit comments

Comments
 (0)