diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-07-30 11:23:55 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-07-30 11:23:55 +0200 |
commit | ddea90c80230a1a2875d24ba750b71355536df95 (patch) | |
tree | 436213db726370414cbf30435dd82aa61c7c61c7 | |
parent | 6ab4c9a702d418d010c6477bde6e92e38daba2ce (diff) | |
parent | 8a6f3a58000b7d969bd9108f2bdb34203354d39b (diff) | |
download | forums-ddea90c80230a1a2875d24ba750b71355536df95.tar forums-ddea90c80230a1a2875d24ba750b71355536df95.tar.gz forums-ddea90c80230a1a2875d24ba750b71355536df95.tar.bz2 forums-ddea90c80230a1a2875d24ba750b71355536df95.tar.xz forums-ddea90c80230a1a2875d24ba750b71355536df95.zip |
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'"
-rw-r--r-- | phpBB/develop/mysql_upgrader.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/develop/mysql_upgrader.php b/phpBB/develop/mysql_upgrader.php index 05d279a099..17ce12e2bf 100644 --- a/phpBB/develop/mysql_upgrader.php +++ b/phpBB/develop/mysql_upgrader.php @@ -149,7 +149,8 @@ foreach ($schema_data as $table_name => $table_data) list($orig_column_type, $column_length) = explode(':', $column_data[0]); $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]) { |