aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Siteinfo.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module/Siteinfo.php')
-rw-r--r--Zotlabs/Module/Siteinfo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Siteinfo.php b/Zotlabs/Module/Siteinfo.php
index be6862c6b..ac33747f8 100644
--- a/Zotlabs/Module/Siteinfo.php
+++ b/Zotlabs/Module/Siteinfo.php
@@ -5,7 +5,7 @@ namespace Zotlabs\Module;
class Siteinfo extends \Zotlabs\Web\Controller {
function init() {
- if (argv(1) === 'json' || $_REQUEST['module_format'] === 'json') {
+ if (argv(1) === 'json' || (isset($_REQUEST['module_format']) && $_REQUEST['module_format'] === 'json')) {
$data = get_site_info();
json_return_and_die($data);
}