Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
e05ac458
Commit
e05ac458
authored
4 years ago
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'closed by selected answer' notices on PHP 7.4
parent
09308f29
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
question-view.php
qa-include/pages/question-view.php
+2
-2
No files found.
qa-include/pages/question-view.php
View file @
e05ac458
...
@@ -431,7 +431,7 @@ function qa_page_q_question_view($question, $parentquestion, $closepost, $usersh
...
@@ -431,7 +431,7 @@ function qa_page_q_question_view($question, $parentquestion, $closepost, $usersh
// Information about the question that this question is a duplicate of (if appropriate)
// Information about the question that this question is a duplicate of (if appropriate)
if
(
isset
(
$closepost
)
||
qa_post_is_closed
(
$question
))
{
if
(
isset
(
$closepost
)
||
qa_post_is_closed
(
$question
))
{
if
(
$closepost
[
'basetype'
]
==
'Q'
)
{
if
(
isset
(
$closepost
[
'basetype'
])
&&
$closepost
[
'basetype'
]
==
'Q'
)
{
if
(
$closepost
[
'hidden'
])
{
if
(
$closepost
[
'hidden'
])
{
// don't show link for hidden questions
// don't show link for hidden questions
$q_view
[
'closed'
]
=
array
(
$q_view
[
'closed'
]
=
array
(
...
@@ -448,7 +448,7 @@ function qa_page_q_question_view($question, $parentquestion, $closepost, $usersh
...
@@ -448,7 +448,7 @@ function qa_page_q_question_view($question, $parentquestion, $closepost, $usersh
);
);
}
}
}
elseif
(
$closepost
[
'type'
]
==
'NOTE'
)
{
}
elseif
(
isset
(
$closepost
[
'type'
])
&&
$closepost
[
'type'
]
==
'NOTE'
)
{
$viewer
=
qa_load_viewer
(
$closepost
[
'content'
],
$closepost
[
'format'
]);
$viewer
=
qa_load_viewer
(
$closepost
[
'content'
],
$closepost
[
'format'
]);
$q_view
[
'closed'
]
=
array
(
$q_view
[
'closed'
]
=
array
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment