aboutsummaryrefslogtreecommitdiffstats
path: root/include/socgraph.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/socgraph.php')
-rw-r--r--include/socgraph.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/socgraph.php b/include/socgraph.php
index 874086788..f08913ee2 100644
--- a/include/socgraph.php
+++ b/include/socgraph.php
@@ -342,6 +342,7 @@ function poco() {
}
$observer = App::get_observer();
+ $user = '';
if(argc() > 1) {
$user = notags(trim(argv(1)));
@@ -355,7 +356,7 @@ function poco() {
$system_mode = true;
}
- $format = (($_REQUEST['format']) ? $_REQUEST['format'] : 'json');
+ $format = $_REQUEST['format'] ?? 'json';
$justme = false;