summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/html.php b/inc/html.php
index ee1f60919..46e6bd8c6 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1076,7 +1076,7 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed?
<div style="width:99%;">
<div class="toolbar">
- <div id="draft__status"><?php if($INFO['draft']) echo $lang['draftdate'].' '.date($conf['dformat']);?></div>
+ <div id="draft__status"><?php if(!empty($INFO['draft'])) echo $lang['draftdate'].' '.date($conf['dformat']);?></div>
<div id="tool__bar"><?php if(!$ro){?><a href="<?php echo DOKU_BASE?>lib/exe/mediamanager.php?ns=<?php echo $INFO['namespace']?>"
target="_blank"><?php echo $lang['mediaselect'] ?></a><?php }?></div>
@@ -1143,7 +1143,7 @@ function html_minoredit(){
$p['id'] = 'minoredit';
$p['tabindex'] = 3;
$p['value'] = '1';
- if($_REQUEST['minor']) $p['checked']='checked';
+ if(!empty($_REQUEST['minor'])) $p['checked']='checked';
$att = buildAttributes($p);
print '<span class="nowrap">';