diff options
author | friendica <info@friendica.com> | 2013-02-16 15:51:55 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-16 15:51:55 -0800 |
commit | a21e6cffa184d78b6214a0306e2d2a7bbfc8ddb1 (patch) | |
tree | 1448f88c5be38411f91c0f32cef2b7443706fdfb /include/security.php | |
parent | 663f09e01bab8e20390691d81cac541d4fd3289a (diff) | |
download | volse-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.php | 5 |
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']; |