Permalink
Browse files

MINOR PHP notice error (from r97838)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102539 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 68fb898 commit 731269988e2d2c4c7bb3a2b291c6c987a876a839 @chillu chillu committed Apr 12, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/model/MySQLDatabase.php
@@ -727,6 +727,7 @@ public function enumValuesForField($tableName, $fieldName) {
$classnameinfo = DB::query("DESCRIBE \"$tableName\" \"$fieldName\"")->first();
preg_match_all("/'[^,]+'/", $classnameinfo["Type"], $matches);
+ $classes = array();
foreach($matches[0] as $value) {
$classes[] = trim($value, "'");
}

0 comments on commit 7312699

Please sign in to comment.