Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2012-04-14 16:14:39 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2012-04-14 16:14:39 +0400
commit8e62b92d70f15894eccb0d9ec6eb386f047572f4 (patch)
tree041d017de292b4e15b00025a61b0f45091f6cb09 /db_datadict.php
parentef68eaa25487addf2015a60ef399ca96919bd9a4 (diff)
Coding style improvements
Diffstat (limited to 'db_datadict.php')
-rw-r--r--db_datadict.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/db_datadict.php b/db_datadict.php
index b7a253255f..c4ff0eabd2 100644
--- a/db_datadict.php
+++ b/db_datadict.php
@@ -204,9 +204,10 @@ foreach ($tables as $table) {
$field_name = $row['Field'];
if (PMA_MYSQL_INT_VERSION < 50025
- && ! empty($analyzed_sql[0]['create_table_fields'][$field_name]['type'])
- && $analyzed_sql[0]['create_table_fields'][$field_name]['type'] == 'TIMESTAMP'
- && $analyzed_sql[0]['create_table_fields'][$field_name]['timestamp_not_null']) {
+ && ! empty($analyzed_sql[0]['create_table_fields'][$field_name]['type'])
+ && $analyzed_sql[0]['create_table_fields'][$field_name]['type'] == 'TIMESTAMP'
+ && $analyzed_sql[0]['create_table_fields'][$field_name]['timestamp_not_null']
+ ) {
// here, we have a TIMESTAMP that SHOW FULL COLUMNS reports as having the
// NULL attribute, but SHOW CREATE TABLE says the contrary. Believe
// the latter.