Index: subscriptions.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/subscriptions/subscriptions.module,v
retrieving revision 1.62.2.45.2.30
diff -u -r1.62.2.45.2.30 subscriptions.module
--- subscriptions.module	10 Oct 2007 21:19:10 -0000	1.62.2.45.2.30
+++ subscriptions.module	15 Oct 2007 16:44:56 -0000
@@ -434,7 +434,9 @@
   $send_self = isset($mailvars['send_self']);
   // nid is set above at $$object_id
   if (isset($nid)) {
-    $node = node_load($nid);
+    // We do a 'light' node load here because we don't need anything apart from the title, type and teaser
+    // and also this code is called in the middle of nodeapi $op 'view' and doing a node_load there can interfere with the workflow of some modules (e.g. imagecache).
+    $node = db_fetch_object(db_query('SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM {node} n INNER JOIN {users} u ON u.uid = n.uid INNER JOIN {node_revisions} r ON r.vid = n.vid WHERE nid = %d', $nid));
     $mailvars['!title'] = $node->title;
     if (!empty($mailvars['title'])) {
       $mailvars['!title'] .= $mailvars['title'];
