aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/channel.php b/include/channel.php
index a42315ed6..296615524 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -1581,6 +1581,8 @@ function profile_sidebar($profile, $block = 0, $show_connect = true, $details =
$location = false;
$pdesc = true;
$reddress = true;
+ $connect_url = '';
+ $connect = '';
if(! perm_is_allowed($profile['uid'], $observer_hash, 'view_profile')) {
$block = true;
@@ -1792,7 +1794,7 @@ function advanced_profile() {
$profile['birthday'] = array( t('Birthday:'), $val);
}
- if($age = age(App::$profile['dob'],App::$profile['timezone'],''))
+ if($age = age(App::$profile['dob'], App::$profile['timezone'] ?? '',''))
$profile['age'] = array( t('Age:'), $age );
if(App::$profile['marital'])
@@ -1874,7 +1876,7 @@ function advanced_profile() {
return replace_macros($tpl, array(
'$title' => t('Profile'),
- '$canlike' => (($profile['canlike'])? true : false),
+ '$canlike' => ((isset($profile['canlike']) && $profile['canlike'])? true : false),
'$likethis' => t('Like this thing'),
'$export' => t('Export'),
'$exportlink' => $exportlink,