diff options
author | Mario <mario@mariovavti.com> | 2022-09-22 06:31:35 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-09-22 06:31:35 +0000 |
commit | 937d6cb1efef3250f68f2b943e3964473495acae (patch) | |
tree | 578834c1f838b65535c8176fa31237d22afeb42c /Zotlabs/Module/Admin | |
parent | 118a5edebc745fe2760f781c8bb9e9006bf6215f (diff) | |
download | volse-hubzilla-937d6cb1efef3250f68f2b943e3964473495acae.tar.gz volse-hubzilla-937d6cb1efef3250f68f2b943e3964473495acae.tar.bz2 volse-hubzilla-937d6cb1efef3250f68f2b943e3964473495acae.zip |
php8: fix warnings
Diffstat (limited to 'Zotlabs/Module/Admin')
-rw-r--r-- | Zotlabs/Module/Admin/Queue.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Zotlabs/Module/Admin/Queue.php b/Zotlabs/Module/Admin/Queue.php index 8a843083b..8a20324d0 100644 --- a/Zotlabs/Module/Admin/Queue.php +++ b/Zotlabs/Module/Admin/Queue.php @@ -12,18 +12,18 @@ class Queue { $o = ''; - $expert = ((array_key_exists('expert',$_REQUEST)) ? intval($_REQUEST['expert']) : 0); + $expert = $_REQUEST['expert'] ?? false; - if($_REQUEST['drophub']) { + if(isset($_REQUEST['drophub'])) { hubloc_mark_as_down($_REQUEST['drophub']); LibQueue::remove_by_posturl($_REQUEST['drophub']); } - if($_REQUEST['emptyhub']) { + if(isset($_REQUEST['emptyhub'])) { LibQueue::remove_by_posturl($_REQUEST['emptyhub']); } - if($_REQUEST['deliverhub']) { + if(isset($_REQUEST['deliverhub'])) { $hubq = q("SELECT * FROM outq WHERE outq_posturl = '%s'", dbesc($_REQUEST['deliverhub']) @@ -39,7 +39,6 @@ class Queue { for($x = 0; $x < count($r); $x ++) { $r[$x]['eurl'] = urlencode($r[$x]['outq_posturl']); - $r[$x]['connected'] = datetime_convert('UTC',date_default_timezone_get(),$r[$x]['connected'],'Y-m-d'); } $o = replace_macros(get_markup_template('admin_queue.tpl'), array( |