Skip to content

Commit

Permalink
Merge pull request #10281 from SidRoberts/fix-10279
Browse files Browse the repository at this point in the history
[2.0.x] Flash\Session::getMessages('key') now returns an empty array if there are no 'key' messages (fixes #10279)
  • Loading branch information
andresgutierrez committed May 11, 2015
2 parents b8dc389 + d2d7714 commit 841700c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phalcon/flash/session.zep
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ class Session extends \Phalcon\Flash implements FlashInterface, InjectionAwareIn
if typeof type == "string" {
if fetch returnMessages, messages[type] {
return returnMessages;
} else {
return [];
}
}
return messages;
Expand Down

0 comments on commit 841700c

Please sign in to comment.