]> git.mxchange.org Git - friendica.git/commitdiff
some polishing
authorrabuzarus <rabuzarus@t-online.de>
Mon, 12 Feb 2018 03:10:11 +0000 (04:10 +0100)
committerrabuzarus <rabuzarus@t-online.de>
Mon, 12 Feb 2018 03:10:11 +0000 (04:10 +0100)
mod/register.php
mod/viewcontacts.php

index 4a59277b414d1f764740bb6868444163fcdb7900..40aa7c1bc4e5b61ea00470345cf2428d89705d94 100644 (file)
@@ -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;
 
index 20585676dd77074d8cc8dcceb9aa066cb8bd2aba..7763dc8bf7a9c4b88bbbaec9485218cf6dfbdfc4 100644 (file)
@@ -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 = "";