aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-30 04:59:10 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-30 04:59:10 -0700
commit768acb0a3faf2c2f2a523420710673aaacb64f76 (patch)
tree908896498fb5d8809f96af4bb220ac579a7dbbde /mod
parentcbaf0f2dc9cbea06ca3496d60f69dfeb10352394 (diff)
downloadvolse-hubzilla-768acb0a3faf2c2f2a523420710673aaacb64f76.tar.gz
volse-hubzilla-768acb0a3faf2c2f2a523420710673aaacb64f76.tar.bz2
volse-hubzilla-768acb0a3faf2c2f2a523420710673aaacb64f76.zip
-Wall cleanup
Diffstat (limited to 'mod')
-rw-r--r--mod/profile.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/profile.php b/mod/profile.php
index a39d839a9..7c01501d6 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -366,14 +366,14 @@ function profile_content(&$a, $update = 0) {
$drop = '';
$dropping = false;
- if(($item['contact-id'] == $_SESSION['visitor_id']) || ($item['uid'] == $_SESSION['uid']))
+ if(($item['contact-id'] == remote_user()) || ($item['uid'] == local_user()))
$dropping = true;
$drop = replace_macros((($dropping)? $droptpl : $fakedrop), array('$id' => $item['id']));
- $like = (($alike[$item['id']]) ? format_like($alike[$item['id']],$alike[$item['id'] . '-l'],'like',$item['id']) : '');
- $dislike = (($dlike[$item['id']]) ? format_like($dlike[$item['id']],$dlike[$item['id'] . '-l'],'dislike',$item['id']) : '');
+ $like = ((isset($alike[$item['id']])) ? format_like($alike[$item['id']],$alike[$item['id'] . '-l'],'like',$item['id']) : '');
+ $dislike = ((isset($dlike[$item['id']])) ? format_like($dlike[$item['id']],$dlike[$item['id'] . '-l'],'dislike',$item['id']) : '');
$location = (($item['location']) ? '<a target="map" href="http://maps.google.com/?q=' . urlencode($item['location']) . '">' . $item['location'] . '</a>' : '');
$coord = (($item['coord']) ? '<a target="map" href="http://maps.google.com/?q=' . urlencode($item['coord']) . '">' . $item['coord'] . '</a>' : '');
if($coord) {