Index: mysite.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mysite/mysite.module,v
retrieving revision 1.60.2.19
diff -u -p -r1.60.2.19 mysite.module
--- mysite.module	8 Feb 2008 00:58:59 -0000	1.60.2.19
+++ mysite.module	9 Feb 2008 00:04:04 -0000
@@ -690,13 +690,14 @@ function mysite_page($uid = NULL, $pagev
       mysite_message($owner->uid);
 
       // this user has no page, give them help making one
-      if ($mysite->uid == 0 && user_access('edit mysite')) {
-        $output = theme('mysite_create_help', $owner);
-        return $output;
-      }
-      // It is possible that the user is following an old link.
+      if (user_access('edit mysite')) {
+        if (!isset($mysite->uid)) {
+          $output = theme('mysite_create_help', $owner);
+          return $output;
+        }
+      }  
       else {
-        drupal_access_denied();
+        return drupal_access_denied();
       }
     }
   }
@@ -776,7 +777,7 @@ function mysite_page($uid = NULL, $pagev
     drupal_goto('mysite/'. $user->uid .'/view');
   }
   else {
-    drupal_access_denied();
+    return drupal_access_denied();
     return;
   }
 }
