aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-09-22 06:31:35 +0000
committerMario <mario@mariovavti.com>2022-09-22 06:31:35 +0000
commit937d6cb1efef3250f68f2b943e3964473495acae (patch)
tree578834c1f838b65535c8176fa31237d22afeb42c /Zotlabs/Module
parent118a5edebc745fe2760f781c8bb9e9006bf6215f (diff)
downloadvolse-hubzilla-937d6cb1efef3250f68f2b943e3964473495acae.tar.gz
volse-hubzilla-937d6cb1efef3250f68f2b943e3964473495acae.tar.bz2
volse-hubzilla-937d6cb1efef3250f68f2b943e3964473495acae.zip
php8: fix warnings
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Admin/Queue.php9
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(