The branch, master has been updated
       via  86722781ebeb5f740c778ec22c72015d9d63a414 (commit)
      from  0ad7567d3f89e1e2481de5a588bfd0d93e8c5f1c (commit)


- Log -----------------------------------------------------------------
commit 86722781ebeb5f740c778ec22c72015d9d63a414
Author: Marc Delisle <[email protected]>
Date:   Thu Sep 29 06:19:03 2011 -0400

    A table has been dropped from outside phpMyAdmin

-----------------------------------------------------------------------

Summary of changes:
 libraries/schema/User_Schema.class.php |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/libraries/schema/User_Schema.class.php 
b/libraries/schema/User_Schema.class.php
index ae0a629..29b1bf3 100644
--- a/libraries/schema/User_Schema.class.php
+++ b/libraries/schema/User_Schema.class.php
@@ -526,8 +526,12 @@ class PMA_User_Schema
             echo '<div id="table_' . $i . '" class="pdflayout_table"><u>' . 
$temp_sh_page['table_name'] . '</u>';
             if (isset($with_field_names)) {
                 $fields = PMA_DBI_get_columns($db, 
$temp_sh_page['table_name']);
-                foreach ($fields as $row) {
-                    echo '<br />' . htmlspecialchars($row['Field']) . "\n";
+                // if the table has been dropped from outside phpMyAdmin,
+                // we can no longer obtain its columns list
+                if ($fields) {
+                    foreach ($fields as $row) {
+                        echo '<br />' . htmlspecialchars($row['Field']) . "\n";
+                    }
                 }
             }
             echo '</div>' . "\n";


hooks/post-receive
-- 
phpMyAdmin

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to