From ba0a51e9f92dbb414c542b8a016b642120273c9f Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 21 Jun 2012 06:17:22 -0400 Subject: [PATCH] This should be a boolean param --- libraries/insert_edit.lib.php | 8 ++++---- tbl_change.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/insert_edit.lib.php b/libraries/insert_edit.lib.php index 2c24fdef7c..8dbdfada69 100644 --- a/libraries/insert_edit.lib.php +++ b/libraries/insert_edit.lib.php @@ -299,7 +299,7 @@ function PMA_getDefaultForDatetime($column) * * @param array $column description of column in given table * @param array $comments_map comments for every column that has a comment - * @param integer $timestamp_seen 0 interger + * @param boolean $timestamp_seen whether a timestamp has been seen * * @return array description of column in given table */ @@ -407,7 +407,7 @@ function PMA_isColumnChar($column) * Retieve set, enum, timestamp table columns * * @param array $column description of column in given table - * @param integer $timestamp_seen 0 interger + * @param boolean $timestamp_seen whether a timestamp has been seen * * @return array $column['pma_type'], $column['wrap'], $column['first_timestamp'] */ @@ -424,8 +424,8 @@ function PMA_getEnumSetAndTimestampColumns($column, $timestamp_seen) $column['wrap'] = ''; break; case 'timestamp': - if (!$timestamp_seen) { // can only occur once per table - $timestamp_seen = 1; + if (! $timestamp_seen) { // can only occur once per table + $timestamp_seen = true; $column['first_timestamp'] = true; } $column['pma_type'] = $column['Type']; diff --git a/tbl_change.php b/tbl_change.php index 8613410c4f..b847330cb4 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -186,7 +186,7 @@ $html_output .= ' . 'document.onkeydown = onKeyDownArrowsHandler;' . ''; // Set if we passed the first timestamp field -$timestamp_seen = 0; +$timestamp_seen = false; $columns_cnt = count($table_fields); $tabindex = 0;