diff options
author | Simon Rettberg | 2022-05-23 14:41:33 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-05-23 14:41:33 +0200 |
commit | 9122ed1bdee76f0ef37fb5996d25656083b7a4a6 (patch) | |
tree | 0edbe18e60d0f4ad44d711ddf147b25928293f11 /modules-available/locationinfo/page.inc.php | |
parent | [rebootcontrol] Force type of ByRef param to array (diff) | |
download | slx-admin-9122ed1bdee76f0ef37fb5996d25656083b7a4a6.tar.gz slx-admin-9122ed1bdee76f0ef37fb5996d25656083b7a4a6.tar.xz slx-admin-9122ed1bdee76f0ef37fb5996d25656083b7a4a6.zip |
[locationinfo] Add types
Diffstat (limited to 'modules-available/locationinfo/page.inc.php')
-rw-r--r-- | modules-available/locationinfo/page.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |