--- imagecache_profiles_old/imagecache_profiles.module	2007-12-28 07:12:01.000000000 -0800
+++ imagecache_profiles/imagecache_profiles.module	2008-01-21 14:16:32.000000000 -0800
@@ -45,9 +45,9 @@ function phptemplate_user_picture($accou
     }
     elseif (variable_get('user_picture_default', '')) {
       if (isset($size)) {
-        $picture = l(theme('imagecache', $size, $account->picture), 'user/'. $account->uid, array('title' => t('View user profile.')), NULL, NULL, FALSE, TRUE);
+        $picture = l(theme('imagecache', $size, variable_get('user_picture_default','')), 'user/'. $account->uid, array('title' => t('View user profile.')), NULL, NULL, FALSE, TRUE);
       } else {
-        $picture = file_create_url($account->picture);
+        $picture = file_create_url(variable_get('user_picture_default',''));
         $alt = t("@user's picture", array('@user' => $account->name ? $account->name : variable_get('anonymous', t('Anonymous'))));
         $picture = theme('image', $picture, $alt, $alt, '', FALSE);
         if (!empty($account->uid) && user_access('access user profiles')) {
