Quellcode durchsuchen

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

emanuele vor 13 Jahren
Ursprung
Commit
57b53e41a5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Sources/ManagePosts.php

+ 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?