diff options
author | Mario <mario@mariovavti.com> | 2022-10-26 18:12:56 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-10-26 18:12:56 +0000 |
commit | 40ae6b396f3760c4c4b6e4de776869a88ce07fce (patch) | |
tree | e54516ed5ca3d86faf24e1833c1b88294366f7a9 /Zotlabs/Module/Zot_probe.php | |
parent | 9c117ffa0546d6131310ae175e16e5ebf63992a1 (diff) | |
download | volse-hubzilla-40ae6b396f3760c4c4b6e4de776869a88ce07fce.tar.gz volse-hubzilla-40ae6b396f3760c4c4b6e4de776869a88ce07fce.tar.bz2 volse-hubzilla-40ae6b396f3760c4c4b6e4de776869a88ce07fce.zip |
fix php warnings
Diffstat (limited to 'Zotlabs/Module/Zot_probe.php')
-rw-r--r-- | Zotlabs/Module/Zot_probe.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Module/Zot_probe.php b/Zotlabs/Module/Zot_probe.php index bdd9506eb..3eaabdd92 100644 --- a/Zotlabs/Module/Zot_probe.php +++ b/Zotlabs/Module/Zot_probe.php @@ -9,17 +9,17 @@ class Zot_probe extends \Zotlabs\Web\Controller { function get() { - $o .= '<h3>Zot6 Probe Diagnostic</h3>'; + $addr = $_GET['addr'] ?? ''; + + $o = '<h3>Zot6 Probe Diagnostic</h3>'; $o .= '<form action="zot_probe" method="get">'; - $o .= 'Lookup URI: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] .'" /><br>'; + $o .= 'Lookup URI: <input type="text" style="width: 250px;" name="addr" value="' . $addr .'" /><br>'; $o .= '<input type="submit" name="submit" value="Submit" /></form>'; $o .= '<br /><br />'; - if(x($_GET,'addr')) { - $addr = $_GET['addr']; - + if($addr) { $x = Zotfinger::exec($addr); |