From 118a5edebc745fe2760f781c8bb9e9006bf6215f Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 15 Sep 2022 09:19:55 +0000 Subject: fix warnings and regressions --- Zotlabs/Module/Contactedit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Module/Contactedit.php') 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]), -- cgit v1.2.3