aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-09-15 09:19:55 +0000
committerMario <mario@mariovavti.com>2022-09-15 09:19:55 +0000
commit118a5edebc745fe2760f781c8bb9e9006bf6215f (patch)
treef5162ba06cc2ec32b685fd566b086ed9e52d7b33 /Zotlabs/Module
parent1b4333e8d9c37fcf1d0cb9f952009757a2131528 (diff)
downloadvolse-hubzilla-118a5edebc745fe2760f781c8bb9e9006bf6215f.tar.gz
volse-hubzilla-118a5edebc745fe2760f781c8bb9e9006bf6215f.tar.bz2
volse-hubzilla-118a5edebc745fe2760f781c8bb9e9006bf6215f.zip
fix warnings and regressions
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Contactedit.php4
-rw-r--r--Zotlabs/Module/Wfinger.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Contactedit.php b/Zotlabs/Module/Contactedit.php
index f0fb89d3b..58c3380a1 100644
--- a/Zotlabs/Module/Contactedit.php
+++ b/Zotlabs/Module/Contactedit.php
@@ -452,8 +452,8 @@ class Contactedit extends Controller {
if (is_ajax()) {
json_return_and_die([
- 'success' => ((intval($_REQUEST['success'])) ? intval($_REQUEST['success']) : 1),
- 'message' => (($_REQUEST['success']) ? t('Contact updated') : t('Contact update failed')),
+ 'success' => ((isset($_REQUEST['success'])) ? intval($_REQUEST['success']) : 1),
+ 'message' => ((isset($_REQUEST['success'])) ? t('Contact updated') : t('Contact update failed')),
'id' => $contact_id,
'title' => $header_html,
'role' => ((intval($contact['abook_pending'])) ? '' : $roles_dict[$current_permcat]),
diff --git a/Zotlabs/Module/Wfinger.php b/Zotlabs/Module/Wfinger.php
index 6d0e78587..048fcde3f 100644
--- a/Zotlabs/Module/Wfinger.php
+++ b/Zotlabs/Module/Wfinger.php
@@ -21,7 +21,7 @@ class Wfinger extends \Zotlabs\Web\Controller {
elseif(x($_SERVER,'HTTP_X_FORWARDED_PROTO') && ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'))
$scheme = 'https';
- $zot = intval($_REQUEST['zot']);
+ $zot = $_REQUEST['zot'] ?? '';
if(($scheme !== 'https') && (! $zot)) {
header($_SERVER["SERVER_PROTOCOL"] . ' ' . 500 . ' ' . 'Webfinger requires HTTPS');