mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Made $messages param optional for cakeError, closes #4247
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6954 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
0053b162a8
commit
34bcece2d7
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue