Changeset 4139 in subversion


Ignore:
Timestamp:
Oct 26, 2010 9:20:34 AM (3 years ago)
Author:
alec
Message:
  • Fix: don't return "empty" unlock
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_json_output.php

    r4091 r4139  
    238238 
    239239        $rcmail = rcmail::get_instance(); 
    240         $response = array('action' => $rcmail->action, 'unlock' => get_input_value('_unlock', RCUBE_INPUT_GPC)); 
     240        $response['action'] = $rcmail->action; 
     241 
     242        if ($unlock = get_input_value('_unlock', RCUBE_INPUT_GPC)) { 
     243            $response['unlock'] = $unlock; 
     244        } 
    241245 
    242246        if (!empty($this->env)) 
Note: See TracChangeset for help on using the changeset viewer.