浏览代码

adding space between cols="number" and $attr.
removing extra double quote.

tokul 21 年之前
父节点
当前提交
7e398fef72
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      functions/forms.php

+ 2 - 2
functions/forms.php

@@ -121,8 +121,8 @@ function addReset($value) {
  */
 function addTextArea($name, $text = '', $cols = 40, $rows = 10, $attr = '') {
     return '<textarea name="'.htmlspecialchars($name).'" '.
-        'rows="'.(int)$rows .'" cols="'.(int)$cols.'"'.
-        $attr . '">'.htmlspecialchars($text) ."</textarea>\n";
+        'rows="'.(int)$rows .'" cols="'.(int)$cols.'" '.
+        $attr . '>'.htmlspecialchars($text) ."</textarea>\n";
 }
 
 /**