summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-02-21 16:26:37 +0100
committerAleksander Machniak <alec@alec.pl>2014-02-21 16:26:37 +0100
commit8d3d5b42b7a0b53b896f63886135114c7a7544cf (patch)
tree10978f470464e66021727e29bfa149434eff42b4 /index.php
parent17ae1307d6eaeca451e54c7a81780d0bceeaf5fd (diff)
Prevent from "Call to undefined method rcmail_output_json::add_footer()" error
Diffstat (limited to 'index.php')
-rw-r--r--index.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/index.php b/index.php
index 7adb0beb0..32b1adb19 100644
--- a/index.php
+++ b/index.php
@@ -207,6 +207,15 @@ if (empty($RCMAIL->user->ID)) {
$session_error = true;
}
+ if ($session_error || $_REQUEST['_err'] == 'session') {
+ $OUTPUT->show_message('sessionerror', 'error', null, true, -1);
+ }
+
+ if ($OUTPUT->ajax_call || !empty($_REQUEST['_framed'])) {
+ $OUTPUT->command('session_error', $RCMAIL->url(array('_err' => 'session')));
+ $OUTPUT->send('iframe');
+ }
+
// check if installer is still active
if ($RCMAIL->config->get('enable_installer') && is_readable('./installer/index.php')) {
$OUTPUT->add_footer(html::div(array('style' => "background:#ef9398; border:2px solid #dc5757; padding:0.5em; margin:2em auto; width:50em"),
@@ -218,15 +227,6 @@ if (empty($RCMAIL->user->ID)) {
));
}
- if ($session_error || $_REQUEST['_err'] == 'session') {
- $OUTPUT->show_message('sessionerror', 'error', null, true, -1);
- }
-
- if ($OUTPUT->ajax_call || !empty($_REQUEST['_framed'])) {
- $OUTPUT->command('session_error', $RCMAIL->url(array('_err' => 'session')));
- $OUTPUT->send('iframe');
- }
-
$plugin = $RCMAIL->plugins->exec_hook('unauthenticated', array('task' => 'login', 'error' => $session_error));
$RCMAIL->set_task($plugin['task']);