From 049a4f5f867c45e768f6cef09c551d867d85210c Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Mon, 12 Feb 2018 04:10:11 +0100 Subject: [PATCH] some polishing --- mod/register.php | 2 +- mod/viewcontacts.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/register.php b/mod/register.php index 4a59277b41..40aa7c1bc4 100644 --- a/mod/register.php +++ b/mod/register.php @@ -58,7 +58,7 @@ function register_post(App $a) break; } - $netpublish = (((x($_POST, 'profile_publish_reg')) &intval($_POST['profile_publish_reg']) = 1) ? 1 : 0); + $netpublish = !empty($_POST['profile_publish_reg']); $arr = $_POST; diff --git a/mod/viewcontacts.php b/mod/viewcontacts.php index 20585676dd..7763dc8bf7 100644 --- a/mod/viewcontacts.php +++ b/mod/viewcontacts.php @@ -46,7 +46,7 @@ function viewcontacts_content(App $a) return; } - $is_owner = ((local_user() && ($a->profile['profile_uid'] == local_user())) ? true : false); + $is_owner = $a->profile['profile_uid'] == local_user(); $o = ""; -- 2.39.5