diff --git a/post.php b/post.php index 8e2a5a0f..c39355d6 100644 --- a/post.php +++ b/post.php @@ -534,7 +534,8 @@ if (isset($_POST['delete'])) { // Prepend the result to the post body $modifier = ($diceZ != 0) ? ((($diceZ < 0) ? ' - ' : ' + ') . abs($diceZ)) : ''; - $post['body'] = 'Rolled ' . implode(', ', $dicerolls) . $modifier . ' = ' . $dicesum . "\r\n" . $post['body']; + $dicesum = ($diceX > 1) ? ' = ' . $dicesum : ''; + $post['body'] = 'Rolled ' . implode(', ', $dicerolls) . $modifier . $dicesum . "\r\n" . $post['body']; } }