diff options
author | Mario <mario@mariovavti.com> | 2022-10-12 12:15:30 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-10-12 12:15:30 +0000 |
commit | a9a36894cb2637b546ed566ee06f20511cce031f (patch) | |
tree | d4db4326f9414e61771c5cfb3d23d1f47d1ec9a3 /include/socgraph.php | |
parent | bc9778e02f6ba953c8437e8e9f4cc1f211a0232e (diff) | |
download | volse-hubzilla-a9a36894cb2637b546ed566ee06f20511cce031f.tar.gz volse-hubzilla-a9a36894cb2637b546ed566ee06f20511cce031f.tar.bz2 volse-hubzilla-a9a36894cb2637b546ed566ee06f20511cce031f.zip |
fix php warnings
Diffstat (limited to 'include/socgraph.php')
-rw-r--r-- | include/socgraph.php | 3 |
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; |