From 58c036116b8470599f7b21aef29e5982e43d8644 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 12 Jun 2016 16:34:12 +0200 Subject: [PATCH] Support type=password in rcube_output::get_edit_field() --- program/lib/Roundcube/rcube_output.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/program/lib/Roundcube/rcube_output.php b/program/lib/Roundcube/rcube_output.php index 03ff4c116..2d9c69521 100644 --- a/program/lib/Roundcube/rcube_output.php +++ b/program/lib/Roundcube/rcube_output.php @@ -213,10 +213,10 @@ abstract class rcube_output /** * Create an edit field for inclusion on a form * - * @param string col field name - * @param string value field value - * @param array attrib HTML element attributes for field - * @param string type HTML element type (default 'text') + * @param string $col Field name + * @param string $value Field value + * @param array $attrib HTML element attributes for the field + * @param string $type HTML element type (default 'text') * * @return string HTML field definition */ @@ -241,7 +241,7 @@ abstract class rcube_output $input->add('---', ''); $input->add(array_values($attrib['options']), array_keys($attrib['options'])); } - else if ($attrib['type'] == 'password') { + else if ($type == 'password' || $attrib['type'] == 'password') { $input = new html_passwordfield($attrib); } else {