From 9122ed1bdee76f0ef37fb5996d25656083b7a4a6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 23 May 2022 14:41:33 +0200 Subject: [locationinfo] Add types --- modules-available/locationinfo/page.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules-available/locationinfo/page.inc.php') diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index 440a115d..de21aae2 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -438,7 +438,8 @@ class Page_LocationInfo extends Page LocationInfo::setServerError($serverid, 'Unknown backend type: ' . $dbresult['servertype']); return; } - $credentialsOk = $serverInstance->setCredentials($serverid, json_decode($dbresult['credentials'], true)); + $credentialsOk = $serverInstance->setCredentials($serverid, + (array)json_decode($dbresult['credentials'], true)); if ($credentialsOk) { $serverInstance->checkConnection(); -- cgit v1.2.3-55-g7522