aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-13 17:48:11 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-13 17:48:11 -0700
commit800eec5bee9a63940234f94eb3c480a13de1b123 (patch)
tree3ad635fa74cf9b588a31ea5830969b9209047d1e
parent6916c1076cd238779a9653adce81eabda2b655ab (diff)
downloadvolse-hubzilla-800eec5bee9a63940234f94eb3c480a13de1b123.tar.gz
volse-hubzilla-800eec5bee9a63940234f94eb3c480a13de1b123.tar.bz2
volse-hubzilla-800eec5bee9a63940234f94eb3c480a13de1b123.zip
merge from redmatrix
-rw-r--r--include/Contact.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Contact.php b/include/Contact.php
index ad3580f42..6b5f9388c 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -333,7 +333,7 @@ function channel_remove($channel_id, $local = true, $unset_session=true) {
);
// if this was the default channel, set another one as default
if($a->account['account_default_channel'] == $channel_id) {
- $r = q("select channel_id from channel where channel_account_id = %d and not ( channel_pageflags & %d)>0 limit 1",
+ $r = q("select channel_id from channel where channel_account_id = %d and channel_removed = 0 limit 1",
intval($a->account['account_id']),
intval(PAGE_REMOVED));
if ($r) {