aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-18 14:34:59 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-18 14:34:59 -0700
commitac824fe83e67950f9303d13d574ff00b57dd5727 (patch)
tree025eb4346b278d5eb6493bd8b935cf6e842f3db1 /include
parent103814ab8e6940a8e0e24b618d2e02e0779bc39b (diff)
downloadvolse-hubzilla-ac824fe83e67950f9303d13d574ff00b57dd5727.tar.gz
volse-hubzilla-ac824fe83e67950f9303d13d574ff00b57dd5727.tar.bz2
volse-hubzilla-ac824fe83e67950f9303d13d574ff00b57dd5727.zip
eradicate redundant get_uid function
Diffstat (limited to 'include')
-rw-r--r--include/Contact.php2
-rw-r--r--include/security.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/Contact.php b/include/Contact.php
index a915ae0b4..a514a119c 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -16,7 +16,7 @@ function user_remove($uid) {
q("DELETE FROM `profile` WHERE `uid` = %d", intval($uid));
q("DELETE FROM `profile_check` WHERE `uid` = %d", intval($uid));
q("DELETE FROM `user` WHERE `uid` = %d", intval($uid));
- if($uid == get_uid()) {
+ if($uid == local_user()) {
unset($_SESSION['authenticated']);
unset($_SESSION['uid']);
killme();
diff --git a/include/security.php b/include/security.php
index 2ff26ff74..794cd2ce1 100644
--- a/include/security.php
+++ b/include/security.php
@@ -4,7 +4,7 @@ function can_write_wall(&$a,$owner) {
if((! (local_user())) && (! (remote_user())))
return false;
- $uid = get_uid();
+ $uid = local_user();
if(($uid) && ($uid == $owner)) {
return true;