2
0
Эх сурвалжийг харах

If max_messageLength is set to 0 the size of column body is changed to mediumint [Bug 4859]

emanuele 13 жил өмнө
parent
commit
57b53e41a5

+ 1 - 1
Sources/ManagePosts.php

@@ -230,7 +230,7 @@ function ModifyPostSettings($return_config = false)
 					if ($column == 'body' && $index['type'] == 'fulltext')
 						$fulltext = true;
 
-			if (isset($body_type) && $_POST['max_messageLength'] > 65535 && $body_type == 'text')
+			if (isset($body_type) && ($_POST['max_messageLength'] > 65535 || $_POST['max_messageLength'] == 0) && $body_type == 'text')
 			{
 				// @todo Show an error message?!
 				// MySQL only likes fulltext indexes on text columns... for now?