]> git.mxchange.org Git - friendica.git/commitdiff
-Wall cleanup
authorMike Macgirvin <mike@macgirvin.com>
Sat, 30 Oct 2010 11:59:10 +0000 (04:59 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Sat, 30 Oct 2010 11:59:10 +0000 (04:59 -0700)
boot.php
mod/profile.php

index f69d66be55cfda400527fa01696dd50e80f8d0cb..b67a6cebbea8c6ab7c393d7526fbb7af8e017058 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1292,7 +1292,7 @@ function logger($msg) {
 
 if(! function_exists('activity_match')) {
 function activity_match($haystack,$needle) {
-       if(($haystack === $needle) || (($basename($needle) === $haystack) && strstr($needle,NAMESPACE_ACTIVITY_SCHEMA)))
+       if(($haystack === $needle) || ((basename($needle) === $haystack) && strstr($needle,NAMESPACE_ACTIVITY_SCHEMA)))
                return true;
        return false;
 }}
index a39d839a924403672ad7fd0885f77640f5c1cebd..7c01501d66c4711f5977aafd98fb08cdc3da3f43 100644 (file)
@@ -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) {