aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-18 21:29:22 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-18 21:29:22 -0700
commit971b7d7519b4a1e6503bbcf8c0bb6312b8859d22 (patch)
tree50bfba07984ecba315495b563e32f1ac168b542a /mod/profile.php
parent65a420b22755f774dc2422f7fdf3709e01289945 (diff)
downloadvolse-hubzilla-971b7d7519b4a1e6503bbcf8c0bb6312b8859d22.tar.gz
volse-hubzilla-971b7d7519b4a1e6503bbcf8c0bb6312b8859d22.tar.bz2
volse-hubzilla-971b7d7519b4a1e6503bbcf8c0bb6312b8859d22.zip
don't set tab to selected if visiting
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/profile.php b/mod/profile.php
index 6923b0923..31b634013 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -89,7 +89,8 @@ function profile_content(&$a, $update = false) {
$a->profile['profile_uid'] = $_SESSION['profile_uid'];
}
else {
- $o .= '<script> $(document).ready(function() { $(\'#nav-home-link\').addClass(\'nav-selected\'); });</script>';
+ if($a->profile['uid'] == get_uid())
+ $o .= '<script> $(document).ready(function() { $(\'#nav-home-link\').addClass(\'nav-selected\'); });</script>';
// set the uid so we can pick it up during update
$_SESSION['profile_uid'] = $a->profile['uid'];
}