mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge remote-tracking branch 'bantu/ticket/11524' into prep-release-3.0.12
* bantu/ticket/11524: [ticket/11524] Add another isset() to mitigate "Illegal string offset 'limit'"
This commit is contained in:
commit
ddea90c802
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ foreach ($schema_data as $table_name => $table_data)
|
||||||
list($orig_column_type, $column_length) = explode(':', $column_data[0]);
|
list($orig_column_type, $column_length) = explode(':', $column_data[0]);
|
||||||
$column_type = sprintf($dbms_type_map['mysql_41'][$orig_column_type . ':'], $column_length);
|
$column_type = sprintf($dbms_type_map['mysql_41'][$orig_column_type . ':'], $column_length);
|
||||||
|
|
||||||
if (isset($dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][0]))
|
if (isset($dbms_type_map['mysql_40'][$orig_column_type . ':']['limit']) &&
|
||||||
|
isset($dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][0]))
|
||||||
{
|
{
|
||||||
switch ($dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][0])
|
switch ($dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][0])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue