diff --git a/library/includes/functions.php b/library/includes/functions.php index d4db8546..a9e9df62 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1240,7 +1240,12 @@ function show_bt_userdata ($user_id) { global $lang, $template; - $btu = get_bt_userdata($user_id); + if (!$btu = get_bt_userdata($user_id)) + { + require(INC_DIR .'functions_torrent.php'); + generate_passkey($user_id, true); + $btu = get_bt_userdata($user_id); + } $template->assign_vars(array( 'SHOW_BT_USERDATA' => true,