some work on issue #329

This commit is contained in:
redmatrix
2015-05-25 19:17:35 -07:00
parent 29a8d580be
commit 9a0264f5d2
4 changed files with 11 additions and 8 deletions

View File

@@ -621,8 +621,9 @@ function profile_load(&$a, $nickname, $profile = '') {
logger('profile_load: ' . $nickname . (($profile) ? ' profile: ' . $profile : ''));
$user = q("select channel_id from channel where channel_address = '%s' limit 1",
dbesc($nickname)
$user = q("select channel_id from channel where channel_address = '%s' and not ( channel_pageflags & %d ) > 0 limit 1",
dbesc($nickname),
intval(PAGE_REMOVED)
);
if(! $user) {