mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Add error key to fail messages - avoid xml error (index 0 - Ex: <0>message</0>)
This commit is contained in:
parent
f5bf9b6d66
commit
5edd096a0a
@ -140,7 +140,7 @@ trait ResponseTrait
|
||||
{
|
||||
if ( ! is_array($messages))
|
||||
{
|
||||
$messages = [$messages];
|
||||
$messages = ['error' => $messages];
|
||||
}
|
||||
|
||||
$response = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user