The branch, master has been updated via 7802be3c48de27f14f4bc8e6acf331c3aff1951e (commit) from bb60e888e789c5d529a44d098cef5c12d41779ba (commit)
- Log ----------------------------------------------------------------- commit 7802be3c48de27f14f4bc8e6acf331c3aff1951e Author: Madhura Jayaratne madhura.cj@gmail.com Date: Tue Jul 12 19:00:44 2011 +0530
Avoid notices about undefined array index
-----------------------------------------------------------------------
Summary of changes: libraries/Index.class.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libraries/Index.class.php b/libraries/Index.class.php index 1800aee..7cc4799 100644 --- a/libraries/Index.class.php +++ b/libraries/Index.class.php @@ -194,9 +194,10 @@ class PMA_Index // $columns[names][] // $columns[sub_parts][] foreach ($columns['names'] as $key => $name) { + $sub_part = isset($columns['sub_parts'][$key]) ? $columns['sub_parts'][$key] : ''; $_columns[] = array( 'Column_name' => $name, - 'Sub_part' => $columns['sub_parts'][$key], + 'Sub_part' => $sub_part, ); } } else {
hooks/post-receive