diff options
author | Mario <mario@mariovavti.com> | 2022-10-10 18:05:26 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-10-10 18:05:26 +0000 |
commit | ef2448e17e742e7dcef458993bce1e0a29756aa7 (patch) | |
tree | d23c62753abbb42e7bb742f2d44d09321b6f2eee /Zotlabs/Module/Contactedit.php | |
parent | 6ab65519a0fc3e55ad5f32ce1641190ef609a4e2 (diff) | |
parent | 99a5cf1ad4660a31af6c03e5a1abc3d374f82c78 (diff) | |
download | volse-hubzilla-ef2448e17e742e7dcef458993bce1e0a29756aa7.tar.gz volse-hubzilla-ef2448e17e742e7dcef458993bce1e0a29756aa7.tar.bz2 volse-hubzilla-ef2448e17e742e7dcef458993bce1e0a29756aa7.zip |
Merge branch '7.8RC'7.8
Diffstat (limited to 'Zotlabs/Module/Contactedit.php')
-rw-r--r-- | Zotlabs/Module/Contactedit.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Contactedit.php b/Zotlabs/Module/Contactedit.php index d306039d2..58c3380a1 100644 --- a/Zotlabs/Module/Contactedit.php +++ b/Zotlabs/Module/Contactedit.php @@ -103,7 +103,7 @@ class Contactedit extends Controller { dbesc($profile_id), intval(local_channel()) ); - if (!count($r)) { + if (!$r) { notice(t('Could not locate selected profile.') . EOL); return; } @@ -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]), |