aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-04-12 07:20:44 +1000
committerRedMatrix <info@friendica.com>2014-04-12 07:20:44 +1000
commitdf7c2afc6822c19e8dd7c93eea58efa48d5ca2c3 (patch)
tree54267c115db5072a5c379ea5fb9e0e0f4454d5a2 /include/security.php
parentaa1f5ce7535d4cf17dbdafb4b780a538f35ef05f (diff)
parent2fdcd0c27eac389709f48d6b40723e153c1492e6 (diff)
downloadvolse-hubzilla-df7c2afc6822c19e8dd7c93eea58efa48d5ca2c3.tar.gz
volse-hubzilla-df7c2afc6822c19e8dd7c93eea58efa48d5ca2c3.tar.bz2
volse-hubzilla-df7c2afc6822c19e8dd7c93eea58efa48d5ca2c3.zip
Merge pull request #405 from beardy-unixer/master
A few little fixes
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/security.php b/include/security.php
index 282c8ab73..0edbf854d 100644
--- a/include/security.php
+++ b/include/security.php
@@ -53,8 +53,9 @@ function authenticate_success($user_record, $login_initial = false, $interactive
/* This account has never created a channel. Send them to new_channel by default */
if($a->module === 'login') {
- $r = q("select count(channel_id) as total from channel where channel_account_id = %d",
- intval($a->account['account_id'])
+ $r = q("select count(channel_id) as total from channel where channel_account_id = %d and not ( channel_pageflags & %d)",
+ intval($a->account['account_id']),
+ intval(PAGE_REMOVED)
);
if(($r) && (! $r[0]['total']))
goaway(z_root() . '/new_channel');