Commit d3041415 by Qiang Xue

Merge pull request #2404 from Jasrags/master

Added in an isset check because if you set a flash type that is not in o...
parents 1cd3f2bb 06c3086d
......@@ -48,6 +48,7 @@ class Alert extends \yii\bootstrap\Widget
$appendCss = isset($this->options['class']) ? ' ' . $this->options['class'] : '';
foreach ($flashes as $type => $message) {
if (isset($this->alertTypes[$type])) {
/* initialize css class for each alert box */
$this->options['class'] = $this->alertTypes[$type] . $appendCss;
......@@ -63,4 +64,5 @@ class Alert extends \yii\bootstrap\Widget
$session->removeFlash($type);
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment