From 40ae6b396f3760c4c4b6e4de776869a88ce07fce Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 26 Oct 2022 18:12:56 +0000 Subject: fix php warnings --- Zotlabs/Module/Poke.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Module/Poke.php') diff --git a/Zotlabs/Module/Poke.php b/Zotlabs/Module/Poke.php index c46896e52..30585bf3d 100644 --- a/Zotlabs/Module/Poke.php +++ b/Zotlabs/Module/Poke.php @@ -37,7 +37,7 @@ class Poke extends Controller { $uid = local_channel(); $channel = App::get_channel(); - $verb = notags(trim($_REQUEST['verb'])); + $verb = ((isset($_GET['verb'])) ? notags(trim($_GET['verb'])) : ''); if(! $verb) return; @@ -154,7 +154,7 @@ class Poke extends Controller { $name = ''; $id = ''; - if(intval($_REQUEST['c'])) { + if(isset($_REQUEST['c']) && intval($_REQUEST['c'])) { $r = q("select abook_id, xchan_name from abook left join xchan on abook_xchan = xchan_hash where abook_id = %d and abook_channel = %d limit 1", intval($_REQUEST['c']), -- cgit v1.2.3