]> git.mxchange.org Git - friendica.git/commitdiff
security issue
authorMike Macgirvin <mike@macgirvin.com>
Sat, 30 Oct 2010 05:18:05 +0000 (22:18 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Sat, 30 Oct 2010 05:18:05 +0000 (22:18 -0700)
mod/profile.php

index 6c60ea8ac1ca90c423a11b1fe89caa2da1f2a280..a39d839a924403672ad7fd0885f77640f5c1cebd 100644 (file)
@@ -2,7 +2,6 @@
 
 if(! function_exists('profile_load')) {
 function profile_load(&$a, $username, $profile = 0) {
-
        if(remote_user()) {
                $r = q("SELECT `profile-id` FROM `contact` WHERE `id` = %d LIMIT 1",
                        intval($_SESSION['visitor_id']));
@@ -193,7 +192,7 @@ function profile_content(&$a, $update = 0) {
 
        // Profile owner - everything is visible
 
-       if(is_owner) {
+       if($is_owner) {
                $sql_extra = ''; 
                
                // Oh - while we're here... reset the Unseen messages