aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index eb3d1b06e..3bc8d2983 100644
--- a/boot.php
+++ b/boot.php
@@ -1027,7 +1027,7 @@ function photo_new_resource() {
if(! function_exists('get_uid')) {
function get_uid() {
- return ((x($_SESSION,'uid')) ? intval($_SESSION['uid']) : 0) ;
+ return local_user();
}}
// Take a URL from the wild, prepend http:// if necessary