The branch, master has been updated
       via  7802be3c48de27f14f4bc8e6acf331c3aff1951e (commit)
      from  bb60e888e789c5d529a44d098cef5c12d41779ba (commit)


- Log -----------------------------------------------------------------
commit 7802be3c48de27f14f4bc8e6acf331c3aff1951e
Author: Madhura Jayaratne <[email protected]>
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
-- 
phpMyAdmin

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to