The branch, master has been updated
via 98df129296c83ebe51e7c484c7d57ee31f19e115 (commit)
from 5e5f23e5448a7393d354e7f3bc3ca9a6eeb05f43 (commit)
- Log -----------------------------------------------------------------
commit 98df129296c83ebe51e7c484c7d57ee31f19e115
Author: Marc Delisle <marc(a)infomarc.info>
Date: Sat Feb 5 15:58:04 2011 -0500
Avoid notices for undefined indexes
-----------------------------------------------------------------------
Summary of changes:
tbl_change.php | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tbl_change.php b/tbl_change.php
index 2d4bcd8..d77ae86 100644
--- a/tbl_change.php
+++ b/tbl_change.php
@@ -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;
hooks/post-receive
--
phpMyAdmin