Skip to content

Commit fae4054

Browse files
committed
* Fix 5.4 compatibility.
1 parent d99b8b2 commit fae4054

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

application/core/MY_Controller.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ function init()
5959

6060
$this->page = (object)NULL;
6161
$this->page->noindex = false;
62+
63+
$this->data['status'] = (object)NULL;
6264
}
6365

6466
/**

application/views/common/status.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{if $status}
1+
{if $status AND isset($status->success) AND isset($status->message)}
22
<div id="status" class="status {if $status->success}success{else}error{/if}">
33
{$status->message}
44
</div>

0 commit comments

Comments
 (0)