summaryrefslogtreecommitdiff
path: root/program/include/rcube_json_output.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-26 13:20:34 +0000
committeralecpl <alec@alec.pl>2010-10-26 13:20:34 +0000
commit10a6fc58e6e8a40388ffda43f949f69f5ec804dc (patch)
tree09ed30f9532edac61eaabdf5b29e7e5be177d04c /program/include/rcube_json_output.php
parentfa2173cefe5106d187daf5d59de743ea926609bc (diff)
- Fix: don't return "empty" unlock
Diffstat (limited to 'program/include/rcube_json_output.php')
-rw-r--r--program/include/rcube_json_output.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/include/rcube_json_output.php b/program/include/rcube_json_output.php
index 1ad1ec56c..cd6b289b2 100644
--- a/program/include/rcube_json_output.php
+++ b/program/include/rcube_json_output.php
@@ -237,7 +237,11 @@ class rcube_json_output
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;