MINOR PHP notice error (from r97838)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102539 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-12 23:43:52 +00:00
parent 68fb898c6d
commit 731269988e

View File

@ -727,6 +727,7 @@ class MySQLDatabase extends SS_Database {
$classnameinfo = DB::query("DESCRIBE \"$tableName\" \"$fieldName\"")->first();
preg_match_all("/'[^,]+'/", $classnameinfo["Type"], $matches);
$classes = array();
foreach($matches[0] as $value) {
$classes[] = trim($value, "'");
}