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
747827e8
Commit
747827e8
authored
Jul 14, 2020
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Notices on PHP 7.4
parent
c2d4be56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
question-view.php
qa-include/pages/question-view.php
+1
-1
question.php
qa-include/pages/question.php
+1
-1
tag.php
qa-include/pages/tag.php
+1
-1
No files found.
qa-include/pages/question-view.php
View file @
747827e8
...
...
@@ -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_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
();
...
...
qa-include/pages/question.php
View file @
747827e8
...
...
@@ -70,7 +70,7 @@ if (!isset($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
;
if
(
isset
(
$question
))
{
...
...
qa-include/pages/tag.php
View file @
747827e8
...
...
@@ -82,7 +82,7 @@ foreach ($questions as $postid => $question) {
$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'
]))
$qa_content
[
'suggest_next'
]
=
qa_html_suggest_qs_tags
(
true
);
...
...
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