Before these changes list of types on mail_transport_edit.php was not working because of a324af77
On this case tpl->setVar requires only one argument, since $rec is an array and <option value='$key' $selected>$val should not be encoded.
There is no variable $type