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
This commit is contained in:
jakubvrana 2009-10-03 20:48:44 +00:00
parent c3c32d3513
commit b7ac2c06e4

View file

@ -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;
}