Commit 9d844762 by Scott

Fix warnings with Wordpress integration

parent 21113a0b
...@@ -125,7 +125,7 @@ if (QA_FINAL_EXTERNAL_USERS) { ...@@ -125,7 +125,7 @@ if (QA_FINAL_EXTERNAL_USERS) {
$qa_cached_logged_in_points = qa_db_select_with_pending(qa_db_user_points_selectspec(qa_get_logged_in_userid(), true)); $qa_cached_logged_in_points = qa_db_select_with_pending(qa_db_user_points_selectspec(qa_get_logged_in_userid(), true));
} }
return $qa_cached_logged_in_points['points']; return isset($qa_cached_logged_in_points['points']) ? $qa_cached_logged_in_points['points'] : null;
} }
......
...@@ -343,7 +343,7 @@ $qa_content = qa_content_prepare(); ...@@ -343,7 +343,7 @@ $qa_content = qa_content_prepare();
$qa_content['title'] = qa_lang_html_sub('profile/user_x', $userhtml); $qa_content['title'] = qa_lang_html_sub('profile/user_x', $userhtml);
$qa_content['error'] = @$errors['page']; $qa_content['error'] = @$errors['page'];
if (isset($loginuserid) && $loginuserid != $useraccount['userid'] && !QA_FINAL_EXTERNAL_USERS) { if (!QA_FINAL_EXTERNAL_USERS && isset($loginuserid) && $loginuserid != $useraccount['userid']) {
$favoritemap = qa_get_favorite_non_qs_map(); $favoritemap = qa_get_favorite_non_qs_map();
$favorite = @$favoritemap['user'][$useraccount['userid']]; $favorite = @$favoritemap['user'][$useraccount['userid']];
...@@ -753,7 +753,7 @@ $qa_content['form_activity'] = array( ...@@ -753,7 +753,7 @@ $qa_content['form_activity'] = array(
'bonus' => array( 'bonus' => array(
'label' => qa_lang_html('profile/bonus_points'), 'label' => qa_lang_html('profile/bonus_points'),
'tags' => 'name="bonus"', 'tags' => 'name="bonus"',
'value' => qa_html(isset($inbonus) ? $inbonus : $userpoints['bonus']), 'value' => qa_html(isset($inbonus) ? $inbonus : @$userpoints['bonus']),
'type' => 'number', 'type' => 'number',
'note' => qa_lang_html('users/only_shown_admins'), 'note' => qa_lang_html('users/only_shown_admins'),
'id' => 'bonus', 'id' => 'bonus',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment