diff --git a/privatemsg.module b/privatemsg.module index f339ddf..ac63f94 100755 --- a/privatemsg.module +++ b/privatemsg.module @@ -380,22 +380,22 @@ function privatemsg_user_access($permission = 'read privatemsg', $account = NULL * allows access to the own profile, otherwise calls to privatemsg_user_access. * * @param $uid - * ID of the user which profile is being showed. + * ID of the user which profile is being showed. * * @return * TRUE if user has access, FALSE if not. */ -function privatemsg_ownuser_access ($uid = NULL) { - global $user ; +function privatemsg_ownuser_access($uid = NULL) { + global $user; - if ($user->uid && $uid == $user->uid){ - return TRUE ; - } else { - return privatemsg_user_access('read all private messages') ; + if ($user->uid && $uid == $user->uid) { + return TRUE; + } + else { + return privatemsg_user_access('read all private messages'); } } - /** * Check access to the view messages page. * diff --git a/privatemsg.pages.inc b/privatemsg.pages.inc index 3ee306f..ab59114 100644 --- a/privatemsg.pages.inc +++ b/privatemsg.pages.inc @@ -152,8 +152,8 @@ function privatemsg_list_page($argument = 'list', $uid = NULL) { } // Redirects to 'messages' if it's the own profile. else if ((int)$uid > 0 && $uid == $user->uid) { - drupal_goto('messages'); - return; + drupal_goto('messages'); + return; } return drupal_get_form('privatemsg_list', $argument, $account);