diff --git a/libraries/insert_edit.lib.php b/libraries/insert_edit.lib.php index 2c24fdef7c..25531f825c 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 */ @@ -404,10 +404,10 @@ function PMA_isColumnChar($column) } } /** - * Retieve set, enum, timestamp table columns + * Retrieve 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;