Browse Source

Fixed a missing piece to fix [Bug 4859]

emanuele 12 years ago
parent
commit
092fe1d09e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Subs-Post.php

+ 1 - 1
Sources/Subs-Post.php

@@ -1831,7 +1831,7 @@ function createPost(&$msgOptions, &$topicOptions, &$posterOptions)
 	$smcFunc['db_insert']('',
 		'{db_prefix}messages',
 		array(
-			'id_board' => 'int', 'id_topic' => 'int', 'id_member' => 'int', 'subject' => 'string-255', 'body' => (!empty($modSettings['max_messageLength']) && $modSettings['max_messageLength'] > 65534 ? 'string-' . $modSettings['max_messageLength'] : 'string-65534'),
+			'id_board' => 'int', 'id_topic' => 'int', 'id_member' => 'int', 'subject' => 'string-255', 'body' => (!empty($modSettings['max_messageLength']) && $modSettings['max_messageLength'] > 65534 ? 'string-' . $modSettings['max_messageLength'] : (isset($modSettings['max_messageLength']) && $modSettings['max_messageLength'] == 0 ? 'string' : 'string-65534')),
 			'poster_name' => 'string-255', 'poster_email' => 'string-255', 'poster_time' => 'int', 'poster_ip' => 'string-255',
 			'smileys_enabled' => 'int', 'modified_name' => 'string', 'icon' => 'string-16', 'approved' => 'int',
 		),