Skip to content

Commit

Permalink
Fix a typo with field type
Browse files Browse the repository at this point in the history
Signed-off-by: Bugo <[email protected]>
  • Loading branch information
dragomano committed Mar 5, 2024
1 parent 83db36f commit abdc107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/DbPackages-mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function smf_db_create_table($table_name, $columns, $indexes = array(), $paramet
if (
$key === false
|| !isset($columns[$key])
|| !in_array($columns[$key]['type'], array('text', 'mediumntext', 'largetext', 'varchar', 'char'))
|| !in_array($columns[$key]['type'], array('text', 'mediumtext', 'largetext', 'varchar', 'char'))
|| (
isset($size)
&& $size <= 191
Expand Down Expand Up @@ -534,7 +534,7 @@ function smf_db_add_index($table_name, $index_info, $parameters = array(), $if_e
// If a size was already specified, we won't be able to match it anyways.
if (
!isset($cols[$c])
|| !in_array($cols[$c]['type'], array('text', 'mediumntext', 'largetext', 'varchar', 'char'))
|| !in_array($cols[$c]['type'], array('text', 'mediumtext', 'largetext', 'varchar', 'char'))
|| (
isset($size)
&& $size <= 191
Expand Down

0 comments on commit abdc107

Please sign in to comment.