aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index c3a10f300..ef7c140ee 100755
--- a/boot.php
+++ b/boot.php
@@ -1632,8 +1632,10 @@ function profile_load(&$a, $nickname, $profile = '') {
if(! $r) {
$r = q("SELECT profile.uid AS profile_uid, profile.*, channel.* FROM profile
LEFT JOIN channel ON profile.uid = channel.channel_id
- WHERE channel.channel_address = '%s' AND profile.is_default = 1 LIMIT 1",
- dbesc($nickname)
+ WHERE channel.channel_address = '%s' and not ( channel_pageflags & %d )
+ AND profile.is_default = 1 LIMIT 1",
+ dbesc($nickname),
+ intval(PAGE_REMOVED)
);
}