Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash\Session::getMessage('key') returns an array #10279

Closed
osse76 opened this issue May 7, 2015 · 1 comment
Closed

Flash\Session::getMessage('key') returns an array #10279

osse76 opened this issue May 7, 2015 · 1 comment

Comments

@osse76
Copy link

osse76 commented May 7, 2015

I set a flash success messages in the backend. In the view, i also check with getMessage('error') if there error messages present. the method "getMessages('error')" return an array like this:
Array ( [success] => Array ( [0] => "success Message") ).
There was already a similar Bug #908
I would expect an empty array, null or false

andresgutierrez added a commit that referenced this issue May 11, 2015
[2.0.x] Flash\Session::getMessages('key') now returns an empty array if there are no 'key' messages (fixes #10279)
@andresgutierrez
Copy link
Contributor

Fixed in 2.0.x branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants