--- vud.module.org 2011-01-12 17:14:50.000000000 +0530 +++ vud.module 2011-01-12 17:14:54.000000000 +0530 @@ -120,8 +120,9 @@ /** * Menu callback; display all votes for a user. */ -function vud_user_votes() { - if ($account = user_load(array('uid' => arg(1), 'status' => 1))) { +function vud_user_votes($account) { + if(!is_object($account)) $account = user_load(array('uid' => arg(1), 'status' => 1)); + if ($account) { if ($account->status || user_access('administer users')) { $header = array( array('data' => t('Node')),