From a074b4c6e28b044670d21dec791ad0f909eba251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 14 Dec 2011 09:49:49 +0100 Subject: [PATCH] Create fake flags field The content is empty for now, but at least the code will not emit warnings on every access to it (which is quite often). The proper value calculation should be added later. --- libraries/dbi/mysql.dbi.lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/dbi/mysql.dbi.lib.php b/libraries/dbi/mysql.dbi.lib.php index 0a7c86183..96b69338d 100644 --- a/libraries/dbi/mysql.dbi.lib.php +++ b/libraries/dbi/mysql.dbi.lib.php @@ -434,7 +434,9 @@ function PMA_DBI_get_fields_meta($result) $fields = array(); $num_fields = mysql_num_fields($result); for ($i = 0; $i < $num_fields; $i++) { - $fields[] = mysql_fetch_field($result, $i); + $field = mysql_fetch_field($result, $i); + $field->flags = ''; + $fields[] = $field; } return $fields; }