From b7ac2c06e4491114de43c9abc60d5d9f4e322c5b Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Sat, 3 Oct 2009 20:48:44 +0000 Subject: [PATCH] Set description to empty string for NULL value git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1165 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- editor/include/adminer.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index 07a98ce7..250d914f 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -126,7 +126,9 @@ ORDER BY ORDINAL_POSITION"); } // use the descriptions foreach ($rows as $n => $row) { - $return[$n][$key] = $descriptions[$row[$key]]; + if (isset($row[$key])) { + $return[$n][$key] = (string) $descriptions[$row[$key]]; + } } break; }