Commit 03fcd5f5 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files
parents ba759a1d 4ef7f722
......@@ -220,7 +220,7 @@ class Session {
* @return string The HTML representing all of the session messages.
*/
public function render_messages() {
$result = '';
$result = '<div id="messages">';
if (isset($_SESSION['messages'])) {
foreach ($_SESSION['messages'] as $data) {
if ($data['type'] == 'ok') {
......@@ -236,6 +236,7 @@ class Session {
}
$_SESSION['messages'] = array();
}
$result .= '</div>';
return $result;
}
......
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