Commit 747827e8 by Scott

Fix Notices on PHP 7.4

parent c2d4be56
...@@ -1128,7 +1128,7 @@ function qa_page_q_add_c_form(&$qa_content, $question, $parent, $formid, $captch ...@@ -1128,7 +1128,7 @@ function qa_page_q_add_c_form(&$qa_content, $question, $parent, $formid, $captch
qa_set_up_name_field($qa_content, $form['fields'], @$in['name'], $prefix); qa_set_up_name_field($qa_content, $form['fields'], @$in['name'], $prefix);
qa_set_up_notify_fields($qa_content, $form['fields'], 'C', qa_get_logged_in_email(), qa_set_up_notify_fields($qa_content, $form['fields'], 'C', qa_get_logged_in_email(),
isset($in['notify']) ? $in['notify'] : qa_opt('notify_users_default'), $in['email'], @$errors['email'], $prefix); isset($in['notify']) ? $in['notify'] : qa_opt('notify_users_default'), @$in['email'], @$errors['email'], $prefix);
$onloads = array(); $onloads = array();
......
...@@ -70,7 +70,7 @@ if (!isset($questionData)) { ...@@ -70,7 +70,7 @@ if (!isset($questionData)) {
list($question, $childposts, $achildposts, $parentquestion, $closepost, $duplicateposts, $extravalue, $categories, $favorite) = $questionData; list($question, $childposts, $achildposts, $parentquestion, $closepost, $duplicateposts, $extravalue, $categories, $favorite) = $questionData;
if ($question['basetype'] != 'Q') // don't allow direct viewing of other types of post if (isset($question['basetype']) && $question['basetype'] != 'Q') // don't allow direct viewing of other types of post
$question = null; $question = null;
if (isset($question)) { if (isset($question)) {
......
...@@ -82,7 +82,7 @@ foreach ($questions as $postid => $question) { ...@@ -82,7 +82,7 @@ foreach ($questions as $postid => $question) {
$qa_content['canonical'] = qa_get_canonical(); $qa_content['canonical'] = qa_get_canonical();
$qa_content['page_links'] = qa_html_page_links(qa_request(), $start, $pagesize, $tagword['tagcount'], qa_opt('pages_prev_next')); $qa_content['page_links'] = qa_html_page_links(qa_request(), $start, $pagesize, isset($tagword['tagcount']) ? $tagword['tagcount'] : 0, qa_opt('pages_prev_next'));
if (empty($qa_content['page_links'])) if (empty($qa_content['page_links']))
$qa_content['suggest_next'] = qa_html_suggest_qs_tags(true); $qa_content['suggest_next'] = qa_html_suggest_qs_tags(true);
......
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