Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Properly prefix database table in query.

  • Loading branch information...
commit c80ddf4ca2871d2101c9c56a0c0c3063c503f5ff 1 parent 403ab9f
@KyleAMathews KyleAMathews authored
Showing with 4 additions and 1 deletion.
  1. +1 −1  og_mailinglist.install
  2. +3 −0  og_mailinglist.module
View
2  og_mailinglist.install
@@ -298,7 +298,7 @@ function og_mailinglist_update_6004() {
function add_groups_to_og_mailinglist() {
if (!module_exists('purl') && !module_exists('spaces_og')) {
- $results = db_query("SELECT nid, title FROM node WHERE type = 'group'");
+ $results = db_query("SELECT nid, title FROM {node} WHERE type = 'group'");
$groups = array();
View
3  og_mailinglist.module
@@ -378,6 +378,9 @@ function og_mailinglist_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
}
}
+/**
+ * Implmentation of hook_comment().
+ */
function og_mailinglist_comment($comment, $op) {
// $comment can be an object or an array.
$comment = (object)$comment;
Please sign in to comment.
Something went wrong with that request. Please try again.