From 57265808b8e639bb06506851a74e3474521ccb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Dec 2010 17:20:09 +0100 Subject: [PATCH] Do not fail if transformations are not enabled for this table, but request asks to enable them. --- sql.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql.php b/sql.php index 1db0180ab..27a6c724a 100644 --- a/sql.php +++ b/sql.php @@ -643,6 +643,10 @@ if (0 == $num_rows || $is_affected) { //if some posted fields need to be transformed, generate them here. $mime_map = PMA_getMIME($db, $table); + if ($mime_map === FALSE) { + $mime_map = array(); + } + $edited_values = array(); parse_str($_REQUEST['transform_fields_list'], $edited_values);