Missing or empty conditionals group statement.

This commit is contained in:
Yuriy Pikhtarev 2017-06-30 21:53:09 +03:00
commit a79dd8d3d9
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
2 changed files with 2 additions and 5 deletions

View file

@ -360,9 +360,7 @@ function topic_delete($mode_or_topic_id, $forum_id = null, $prune_time = 0, $pru
');
// Log action
if ($prune) {
// TODO
} else {
if (!$prune) {
foreach ($log_topics as $row) {
if ($row['topic_status'] == TOPIC_MOVED) {
$row['topic_title'] = '<i>' . trans('messages.TOPIC_MOVED') . '</i> ' . $row['topic_title'];

View file

@ -41,8 +41,7 @@ function prepare_post(&$mode, &$post_data, &$error_msg, &$username, &$subject, &
}
// Check message
if (!empty($message)) {
} elseif ($mode != 'delete') {
if (empty($message) && $mode != 'delete') {
$error_msg .= (!empty($error_msg)) ? '<br />' . trans('messages.EMPTY_MESSAGE') : trans('messages.EMPTY_MESSAGE');
}