aboutsummaryrefslogtreecommitdiffstats
path: root/mod/connect.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/connect.php')
-rw-r--r--mod/connect.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/connect.php b/mod/connect.php
index f7748bcaf..5b1f258ad 100644
--- a/mod/connect.php
+++ b/mod/connect.php
@@ -38,7 +38,7 @@ function connect_post(&$a) {
$text = escape_tags($_POST['text']);
if($has_premium != $premium) {
- $r = q("update channel set channel_pageflags = ( channel_pageflags ^ %d ) where channel_id = %d limit 1",
+ $r = q("update channel set channel_pageflags = ( channel_pageflags & ~%d ) where channel_id = %d",
intval(PAGE_PREMIUM),
intval(local_user())
);