--- acidfree.module 2006/01/03 04:19:26 1.1 +++ acidfree.module 2006/01/03 05:40:53 @@ -1,5 +1,5 @@ working) return true; + + // + // If we couldn't find a node, this is probably not an image. + // Specifically, this happens when downloading a private file + // through the attachment module. + // + if (!$node) { + return (TRUE); + } if ($node && node_access('view', $node)) { // give some headers (content-type, content-length, content-disposition(filename) )