Skip to content

Commit d84bfc2

Browse files
authored
Fixed important messages
1 parent c0d926a commit d84bfc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FlashMessage/FlashNotifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function important()
109109
return $this;
110110
}
111111

112-
$this->messages[key(array_slice($array, -1, 1,TRUE))]['important'] = true;
112+
$this->messages[key(array_slice($this->messages, -1, 1,TRUE))]['important'] = true;
113113
$this->session->flash('flash_notification.messages', $this->messages);
114114

115115
return $this;

0 commit comments

Comments
 (0)