X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/cd5e077ecb497431decde4835138b877d63b261c..f270b1e143509303e32f65c3dda3fbecaee56c6b:/WEB-INF/lib/form/TextArea.class.php diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php index 66101b98..a9c0c800 100644 --- a/WEB-INF/lib/form/TextArea.class.php +++ b/WEB-INF/lib/form/TextArea.class.php @@ -33,13 +33,12 @@ class TextArea extends FormElement { var $mRows = ""; var $mOnKeyPress = ""; - function __construct($name, $value = '') + function __construct($name) { $this->class = 'TextArea'; $this->name = $name; - $this->value = $value; } - + function setColumns($value) { $this->mColumns = $value; } function getColumns() { return $this->mColumns; } @@ -48,7 +47,8 @@ class TextArea extends FormElement { function getHtml() { - if ($this->id=="") $this->id = $this->mName; + if (empty($this->id)) + $this->id = $this->name; $js_maxlen = "";