diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/blog.module | 2 | ||||
-rw-r--r-- | modules/blog/blog.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog.module b/modules/blog.module index f5c2c4112..2c54e3f09 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -149,7 +149,7 @@ function blog_page_user($uid = 0) { global $user, $theme; if ($uid) { - $account = user_load(array("uid" => $uid, "status" => 1)); + $account = user_load(array((is_numeric($uid) ? "uid" : "name") => $uid, "status" => 1)); } else { $account = $user; diff --git a/modules/blog/blog.module b/modules/blog/blog.module index f5c2c4112..2c54e3f09 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -149,7 +149,7 @@ function blog_page_user($uid = 0) { global $user, $theme; if ($uid) { - $account = user_load(array("uid" => $uid, "status" => 1)); + $account = user_load(array((is_numeric($uid) ? "uid" : "name") => $uid, "status" => 1)); } else { $account = $user; |