Skip to content

Commit

Permalink
Properly prefix database table in query.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Nov 18, 2010
1 parent 403ab9f commit c80ddf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion og_mailinglist.install
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
3 changes: 3 additions & 0 deletions og_mailinglist.module
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c80ddf4

Please sign in to comment.