fix true toggle

This commit is contained in:
Habeas Codice 2014-11-26 11:01:18 -08:00
parent 8ac3b938fd
commit 1a57f3ed51

View File

@ -38,7 +38,8 @@ function connect_post(&$a) {
$text = escape_tags($_POST['text']); $text = escape_tags($_POST['text']);
if($has_premium != $premium) { if($has_premium != $premium) {
$r = q("update channel set channel_pageflags = ( channel_pageflags & ~%d ) where channel_id = %d", $r = q("update channel set channel_pageflags = ( channel_pageflags %s %d ) where channel_id = %d",
db_getfunc('^'),
intval(PAGE_PREMIUM), intval(PAGE_PREMIUM),
intval(local_user()) intval(local_user())
); );