--- ed_classified.module	2007-08-05 10:30:05.000000000 -0700
+++ ed_classified.module_new.patch	2007-09-22 12:48:35.000000000 -0700
@@ -530,7 +530,10 @@ function ed_classified_menu($may_cache) 
     if (arg(0) == 'user' && is_numeric(arg(1))) {
       $account = user_load(array('uid' => arg(1)));
       if ($user !== FALSE && $account->uid) {
-        $items[] = array(
+        $has_ads = db_result(db_query("SELECT count(uid) FROM {node} WHERE type='%s' AND uid='%d'", EDI_CLASSIFIED_MODULE_NAME, $account->uid)); 
+        // only show the ads list in a user's profile if the user has ads
+        if (!empty($has_ads)) {        
+          $items[] = array(
                          'path' => 'user/'.$account->uid.'/'.EDI_CLASSIFIED_PATH_NAME,
                          'title' => t('My @name list', $parms),
                          'callback' => 'ed_classified_by_user',
@@ -538,6 +541,7 @@ function ed_classified_menu($may_cache) 
                          'access' => user_access('access user profiles'),
                          'type' => MENU_LOCAL_TASK,
                          );
+        }
       }
     }
   }
