Index: actions.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/actions/actions.inc,v
retrieving revision 1.12.2.4
diff -u -r1.12.2.4 actions.inc
--- actions.inc	2 Apr 2007 13:43:31 -0000	1.12.2.4
+++ actions.inc	11 Jul 2007 22:33:29 -0000
@@ -318,7 +318,7 @@
       if (isset($node) && is_object($node)) {
         $variables = array(
           '%site_name' => $site_name,
-          '%username' => $user->name,
+          '%username' => $node->uid? $user->name : variable_get('anonymous', 'Anonymous'),
           '%uid' => $node->uid,
           '%node_url' => url('node/' . $node->nid, NULL, NULL, TRUE),
           '%node_type' => $node->type,
