--- subscriptions.module.orig 2006-09-06 13:49:06.000000000 -0700 +++ subscriptions.module 2006-09-06 13:50:17.000000000 -0700 @@ -527,7 +527,7 @@ * given a comment, return an array of associated taxonomies */ function subscriptions_comment_taxa($comment){ - $result = db_query('SELECT tid FROM {term_node} WHERE nid = "%s"', $comment['nid']); + $result = db_query('SELECT tid FROM {term_node} WHERE nid = %d', $comment['nid']); return db_fetch_object($result); } @@ -537,7 +537,7 @@ function subscriptions_comment($comment, $op) { global $user; $strsent = '!'; - $nid = $comment->nid; + $nid = (is_array($comment)) ? $comment['nid'] : $comment->nid; if ($op == 'insert' || ($op == 'update' && $comment->status == 1)) { // ignore deactivated comments // if use_cron is set, insert node actions into holding table if(variable_get('subscriptions_usecron', 0)){