Index: favorite_nodes.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/favorite_nodes/favorite_nodes.module,v
retrieving revision 1.8.2.9
diff -u -r1.8.2.9 favorite_nodes.module
--- favorite_nodes.module	9 Jan 2009 04:01:09 -0000	1.8.2.9
+++ favorite_nodes.module	28 Mar 2009 00:24:36 -0000
@@ -140,11 +140,6 @@
 
   switch ($op) {
     case 'view':
-      $user->content['faveliste'] = array(
-        '#type' => 'user_profile_category',
-        '#title' => t('My favorites'),
-        '#value' => theme('item_list', $items),
-      );
       $fav_list = array();
       foreach (_node_types_natcasesort() as $type) {
         if (variable_get(FAVORITE_NODES_NODE_TYPE . $type->type, 0)) {
@@ -152,6 +147,10 @@
           $favorites = favorite_nodes_get($uid, $type->type, variable_get(FAVORITE_NODES_BLOCK_LIMIT, 5));
           $items = array();
           if (!empty($favorites)) {
+            $user->content['faveliste'] = array(
+              '#type' => 'user_profile_category',
+              '#title' => t('My favorites'),
+            );
             foreach ($favorites as $favorite) {
               $items[] = l($favorite->title, "node/$favorite->nid");
             }
