Skip to content

Commit

Permalink
Added comment explaining difference between $is_public and $is_private.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed May 14, 2010
1 parent 2fa3d28 commit 690893e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions og_mailinglist_transport.inc
Expand Up @@ -274,6 +274,9 @@ function og_mailinglist_save_discussion($email) {
$is_private = db_result(db_query("SELECT og_private
FROM {og}
WHERE nid = %d", $email['groupid']));

// The og_private table stores a 1 if the group is private and 0 if it's public.
// node_save() expects the opposite so we'll invert the value of $is_private.
$is_public = TRUE;
if ($is_private) {
$is_public = FALSE;
Expand Down

0 comments on commit 690893e

Please sign in to comment.