diff --git a/cake/libs/object.php b/cake/libs/object.php index 8a5469d82..091e4a2d1 100644 --- a/cake/libs/object.php +++ b/cake/libs/object.php @@ -182,7 +182,7 @@ class Object { * @return error message * @access public */ - function cakeError($method, $messages) { + function cakeError($method, $messages = array()) { if (!class_exists('ErrorHandler')) { App::import('Core', 'Error');