From c898f606413f4f19d0eea2b8e0a2083138f7d1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 8 Feb 2012 10:18:56 +0100 Subject: [PATCH] Ignore not set transformation (only MIME type set) --- sql.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql.php b/sql.php index e22a32dbd..c7567189f 100644 --- a/sql.php +++ b/sql.php @@ -721,6 +721,10 @@ if ((0 == $num_rows && 0 == $unlim_num_rows) || $is_affected) { parse_str($_REQUEST['transform_fields_list'], $edited_values); foreach($mime_map as $transformation) { + /* Ignore not set transformation (only MIME type set) */ + if (empty($transformation['transformation'])) { + continue; + } $include_file = PMA_securePath($transformation['transformation']); $column_name = $transformation['column_name']; $column_data = $edited_values[$column_name];