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
bcb5cf17
Commit
bcb5cf17
authored
Jul 27, 2020
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PHP 7.4 notice when reshowing questions
parent
e05ac458
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
post-update.php
qa-include/app/post-update.php
+4
-4
No files found.
qa-include/app/post-update.php
View file @
bcb5cf17
...
...
@@ -93,7 +93,7 @@ function qa_question_set_content($oldquestion, $title, $content, $format, $text,
qa_post_unindex
(
$comment
[
'postid'
]);
}
if
(
@
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
if
(
isset
(
$closepost
)
&&
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
qa_post_unindex
(
$closepost
[
'postid'
]);
qa_db_post_set_type
(
$oldquestion
[
'postid'
],
'Q_QUEUED'
);
...
...
@@ -347,7 +347,7 @@ function qa_question_set_status($oldquestion, $status, $userid, $handle, $cookie
qa_post_unindex
(
$comment
[
'postid'
]);
}
if
(
@
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
if
(
isset
(
$closepost
)
&&
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
qa_post_unindex
(
$closepost
[
'postid'
]);
$setupdated
=
false
;
...
...
@@ -421,7 +421,7 @@ function qa_question_set_status($oldquestion, $status, $userid, $handle, $cookie
}
}
if
(
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
{
if
(
isset
(
$closepost
)
&&
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
{
qa_post_index
(
$closepost
[
'postid'
],
$closepost
[
'type'
],
$oldquestion
[
'postid'
],
$closepost
[
'parentid'
],
null
,
$closepost
[
'content'
],
$closepost
[
'format'
],
qa_viewer_text
(
$closepost
[
'content'
],
$closepost
[
'format'
]),
null
,
$closepost
[
'categoryid'
]);
}
...
...
@@ -500,7 +500,7 @@ function qa_question_set_category($oldquestion, $categoryid, $userid, $handle, $
$otherpostids
[]
=
$comment
[
'postid'
];
}
if
(
@
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
if
(
isset
(
$closepost
)
&&
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
$otherpostids
[]
=
$closepost
[
'postid'
];
qa_db_posts_set_category_path
(
$otherpostids
,
$newpath
);
...
...
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