Changeset 1305 in subversion


Ignore:
Timestamp:
Apr 15, 2008 3:34:28 AM (5 years ago)
Author:
alec
Message:
  • don't send set_env() when env array is empty
File:
1 edited

Legend:

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

    r1297 r1305  
    212212    private function get_js_commands() 
    213213    { 
    214         $out = 'this.set_env('.json_serialize($this->env).");\n"; 
     214        $out = ''; 
     215         
     216        if (sizeof($this->env)) 
     217            $out .= 'this.set_env('.json_serialize($this->env).");\n"; 
    215218         
    216219        foreach($this->texts as $name => $text) { 
Note: See TracChangeset for help on using the changeset viewer.