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:
authorMarc Delisle <marc@infomarc.info>2014-10-04 16:27:50 +0400
committerMarc Delisle <marc@infomarc.info>2014-10-04 16:27:50 +0400
commit03debd0a6eafa1277e7a15ca5d4748bfed5f5054 (patch)
tree47623073e492d9601d3752d9ea61bf49adc1f284 /tbl_change.php
parent4e68ada908a39c83feb4601358f3ef5727b265d1 (diff)
Refactor: we had three similar functions, refactored into just one.
Also, these functions returned false, or a string containing the type, but the string was only used to indirectly mean a true value; now we explicitely return true in this case. Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'tbl_change.php')
-rw-r--r--tbl_change.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tbl_change.php b/tbl_change.php
index c0f468d355..e3f4a433e2 100644
--- a/tbl_change.php
+++ b/tbl_change.php
@@ -135,7 +135,10 @@ $url_params = PMA_urlParamsInEditMode(
$has_blob_field = false;
foreach ($table_columns as $column) {
- if (PMA_isColumnBlob($column)) {
+ if (PMA_isColumn(
+ $column,
+ array('blob', 'tinyblob', 'mediumblob', 'longblob')
+ )) {
$has_blob_field = true;
break;
}