From 41f2d812bbaf77d6cb4f5402c01f25fc245bf4eb Mon Sep 17 00:00:00 2001 From: euromark Date: Mon, 3 Dec 2012 12:31:56 +0100 Subject: [PATCH] fix ticket 3429 --- lib/Cake/Console/Command/Task/FixtureTask.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Console/Command/Task/FixtureTask.php b/lib/Cake/Console/Command/Task/FixtureTask.php index 92cf22593..5804650a6 100644 --- a/lib/Cake/Console/Command/Task/FixtureTask.php +++ b/lib/Cake/Console/Command/Task/FixtureTask.php @@ -279,8 +279,8 @@ class FixtureTask extends BakeTask { * @return string fields definitions */ protected function _generateSchema($tableInfo) { - $schema = $this->_Schema->generateTable('f', $tableInfo); - return substr($schema, 13, -2); + $schema = trim($this->_Schema->generateTable('f', $tableInfo), "\n"); + return substr($schema, 13, -1); } /**