Skip to content
Permalink
Browse files

simpler bool check

  • Loading branch information...
visualex committed Dec 7, 2016
1 parent 125e833 commit 8951807ddfb824a17e46f8f5087cf03175cc682d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Controller/Component/FlashComponent.php
@@ -108,11 +108,11 @@ public function set($message, array $options = [])
}
$messages = [];
if ($options['clear'] === false) {
if (!$options['clear']) {
$messages = (array)$this->_session->read('Flash.' . $options['key']);
}
if ($options['duplicate'] === false) {
if (!$options['duplicate']) {
foreach ($messages as $existingMessage) {
if ($existingMessage['message'] === $message) {
return;

0 comments on commit 8951807

Please sign in to comment.
You can’t perform that action at this time.