mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Missing or empty conditionals group statement.
This commit is contained in:
parent
e23622d9d8
commit
a79dd8d3d9
2 changed files with 2 additions and 5 deletions
|
@ -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'];
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue