summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatthew.gregg <matthew.gregg@gmail.com>2008-06-25 10:21:31 -0400
committermatthew.gregg <matthew.gregg@gmail.com>2008-06-25 10:21:31 -0400
commit11070e6ab736ccd691937383afec01a310ee943d (patch)
tree75036df0afa0a64c5f0807cd67baa75c9eb93136 /lib
parentc0ac127a68ad5dbdeb2da1ec4ba4a15f353adb6a (diff)
Fix for space being added to notice form
darcs-hash:20080625142131-982e4-04a23e0c07cff075a3d0ad33f6d765d4eb8b5057.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/util.php b/lib/util.php
index 0762d3a8f..63fcb5ad8 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -99,11 +99,9 @@ function common_element_end($tag) {
function common_element($tag, $attrs=NULL, $content=NULL) {
common_element_start($tag, $attrs);
- if ($content) {
- global $xw;
- $xw->text($content);
- }
- common_element_end($tag);
+ global $xw;
+ $xw->text($content);
+ common_element_end($tag);
}
function common_start_xml($doc=NULL, $public=NULL, $system=NULL) {
@@ -840,7 +838,7 @@ function common_notice_form($action=NULL, $content=NULL) {
common_element('span', array('id' => 'counter', 'class' => 'counter'), '140');
common_element('textarea', array('id' => 'status_textarea',
'name' => 'status_textarea'),
- ($content) ? $content : ' ');
+ ' ');
if ($action) {
common_hidden('returnto', $action);
}