alecpl
2010-10-26 10a6fc58e6e8a40388ffda43f949f69f5ec804dc
- Fix: don't return "empty" unlock


1 files modified
6 ■■■■ changed files
program/include/rcube_json_output.php 6 ●●●● patch | view | raw | blame | history
program/include/rcube_json_output.php
@@ -237,7 +237,11 @@
        unset($this->env['task'], $this->env['action'], $this->env['comm_path']);
        $rcmail = rcmail::get_instance();
        $response = array('action' => $rcmail->action, 'unlock' => get_input_value('_unlock', RCUBE_INPUT_GPC));
        $response['action'] = $rcmail->action;
        if ($unlock = get_input_value('_unlock', RCUBE_INPUT_GPC)) {
            $response['unlock'] = $unlock;
        }
        if (!empty($this->env))
            $response['env'] = $this->env;