From a6a1b619fcbe2cb03d57d0b0708ff75a638eda7e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 31 Jan 2010 22:49:20 +0000 Subject: [PATCH] MINOR PHP notice error git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97838 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/MySQLDatabase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/model/MySQLDatabase.php b/core/model/MySQLDatabase.php index 9b06602c2..c501e6c2f 100755 --- a/core/model/MySQLDatabase.php +++ b/core/model/MySQLDatabase.php @@ -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, "'"); }