diff --git a/cake/console/libs/console.php b/cake/console/libs/console.php index fd5e49aa0..816a7f7b2 100644 --- a/cake/console/libs/console.php +++ b/cake/console/libs/console.php @@ -197,8 +197,8 @@ class ConsoleShell extends Shell { $badChars = array("(", ")"); $data = str_replace($badChars, "", $data); $saveCommand = "\$this->{$modelToSave}->save(array('{$modelToSave}' => array({$data})));"; - $this->out($saveCommand); @eval($saveCommand); + $this->out('Saved record for ' . $modelToSave); } break;