aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-16 15:51:55 -0800
committerfriendica <info@friendica.com>2013-02-16 15:51:55 -0800
commita21e6cffa184d78b6214a0306e2d2a7bbfc8ddb1 (patch)
tree1448f88c5be38411f91c0f32cef2b7443706fdfb /include/security.php
parent663f09e01bab8e20390691d81cac541d4fd3289a (diff)
downloadvolse-hubzilla-a21e6cffa184d78b6214a0306e2d2a7bbfc8ddb1.tar.gz
volse-hubzilla-a21e6cffa184d78b6214a0306e2d2a7bbfc8ddb1.tar.bz2
volse-hubzilla-a21e6cffa184d78b6214a0306e2d2a7bbfc8ddb1.zip
start on channel_remove(), add some generic channel queries to the API layers
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 8477ea6de..e691939fb 100644
--- a/include/security.php
+++ b/include/security.php
@@ -138,9 +138,10 @@ function change_channel($change_channel) {
$ret = false;
if($change_channel) {
- $r = q("select channel.*, xchan.* from channel left join xchan on channel.channel_hash = xchan.xchan_hash where channel_id = %d and channel_account_id = %d limit 1",
+ $r = q("select channel.*, xchan.* from channel left join xchan on channel.channel_hash = xchan.xchan_hash where channel_id = %d and channel_account_id = %d and not ( channel_pageflags & %d) limit 1",
intval($change_channel),
- intval(get_account_id())
+ intval(get_account_id()),
+ intval(PAGE_REMOVED)
);
if($r) {
$hash = $r[0]['channel_hash'];