add requirement check for php-json as settings import/export uses json_decode/json_encode

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-01-30 07:58:24 +01:00
parent c62dd2ecf4
commit 7ae31496ac
6 changed files with 20 additions and 0 deletions

View File

@@ -292,6 +292,11 @@ if ($page == 'overview' && $userinfo['change_serversettings'] == '1') {
}
elseif ($page == 'importexport' && $userinfo['change_serversettings'] == '1')
{
// check for json-stuff
if (! extension_loaded('json')) {
standard_error('jsonextensionnotfound');
}
if (isset($_GET['action']) && $_GET['action'] == "export") {
// export
try {