X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/cd5e077ecb497431decde4835138b877d63b261c..ecd15819788a42f6dfe46949475e45ddb66df436:/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 = "";