diff options
author | Habeas Codice <habeascodice@federated.social> | 2014-11-26 11:01:18 -0800 |
---|---|---|
committer | Habeas Codice <habeascodice@federated.social> | 2014-11-26 11:01:18 -0800 |
commit | 1a57f3ed517e7dd68bd6c7a23802ebee138c128f (patch) | |
tree | 04933146f05dfbe5bf2aa89fdd9abb400dd3a2c8 | |
parent | 8ac3b938fde2ccd7719ac1c22ef5460b35298d78 (diff) | |
download | volse-hubzilla-1a57f3ed517e7dd68bd6c7a23802ebee138c128f.tar.gz volse-hubzilla-1a57f3ed517e7dd68bd6c7a23802ebee138c128f.tar.bz2 volse-hubzilla-1a57f3ed517e7dd68bd6c7a23802ebee138c128f.zip |
fix true toggle
-rw-r--r-- | mod/connect.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/connect.php b/mod/connect.php index 5b1f258ad..396fca645 100644 --- a/mod/connect.php +++ b/mod/connect.php @@ -38,7 +38,8 @@ 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", + $r = q("update channel set channel_pageflags = ( channel_pageflags %s %d ) where channel_id = %d", + db_getfunc('^'), intval(PAGE_PREMIUM), intval(local_user()) ); |