Avoid notices for undefined indexes
This commit is contained in:
@@ -377,6 +377,8 @@ foreach ($rows as $row_id => $vrow) {
|
||||
if (stripos($table_fields[$i]['Type'], 'binary') === 0
|
||||
|| stripos($table_fields[$i]['Type'], 'varbinary') === 0) {
|
||||
$table_fields[$i]['is_binary'] = stristr($table_fields[$i]['Type'], 'binary');
|
||||
} else {
|
||||
$table_fields[$i]['is_binary'] = false;
|
||||
}
|
||||
|
||||
// If check to ensure types such as "enum('one','two','blob',..)" or
|
||||
@@ -386,6 +388,8 @@ foreach ($rows as $row_id => $vrow) {
|
||||
|| stripos($table_fields[$i]['Type'], 'mediumblob') === 0
|
||||
|| stripos($table_fields[$i]['Type'], 'longblob') === 0) {
|
||||
$table_fields[$i]['is_blob'] = stristr($table_fields[$i]['Type'], 'blob');
|
||||
} else {
|
||||
$table_fields[$i]['is_blob'] = false;
|
||||
}
|
||||
|
||||
// If check to ensure types such as "enum('one','two','char',..)" or
|
||||
@@ -393,6 +397,8 @@ foreach ($rows as $row_id => $vrow) {
|
||||
if (stripos($table_fields[$i]['Type'], 'char') === 0
|
||||
|| stripos($table_fields[$i]['Type'], 'varchar') === 0) {
|
||||
$table_fields[$i]['is_char'] = stristr($table_fields[$i]['Type'], 'char');
|
||||
} else {
|
||||
$table_fields[$i]['is_char'] = false;
|
||||
}
|
||||
|
||||
$table_fields[$i]['first_timestamp'] = false;
|
||||
|
Reference in New Issue
Block a user