Q2A Version: 1.6-dev-0213
When user is blocked, error occurs.
qa-include/qa-page-user-profile.php(L539) undefine $questions
[replace (L45-54) ]
@list($useraccount, $userprofile, $userfields, $usermessages, $userpoints, $userrank, $questions, $answerqs, $commentqs, $editqs, $favorite)=
qa_db_select_with_pending(
QA_FINAL_EXTERNAL_USERS ? null : qa_db_user_account_selectspec($handle, false),
QA_FINAL_EXTERNAL_USERS ? null : qa_db_user_profile_selectspec($handle, false),
QA_FINAL_EXTERNAL_USERS ? null : qa_db_userfields_selectspec(),
QA_FINAL_EXTERNAL_USERS ? null : qa_db_recent_messages_selectspec(null, null, $handle, false),
qa_db_user_points_selectspec($identifier),
qa_db_user_rank_selectspec($identifier),
qa_db_user_recent_qs_selectspec($loginuserid, $identifier, qa_opt_if_loaded('page_size_user_posts')),
qa_db_user_recent_a_qs_selectspec($loginuserid, $identifier),
qa_db_user_recent_c_qs_selectspec($loginuserid, $identifier),
qa_db_user_recent_edit_qs_selectspec($loginuserid, $identifier),
(isset($loginuserid) && !QA_FINAL_EXTERNAL_USERS) ? qa_db_is_favorite_selectspec($loginuserid, QA_ENTITY_USER, $handle) : null
);
[Add (L117)]
// Get information on user references in answers and other stuff need for page
$pagesize=qa_opt('page_size_user_posts');
$questions=qa_any_sort_and_dedupe(array_merge($questions, $answerqs, $commentqs, $editqs));
$questions=array_slice($questions, 0, $pagesize);
$usershtml=qa_userids_handles_html(qa_any_get_userids_handles($questions));
$usershtml[$userid]=$userhtml;