diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 72e05cf08d..79b8735ef7 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -591,10 +591,17 @@ function dropdown_categories($blog_ID=1) { echo ""; } -function touch_time($edit=1) { +function touch_time($edit = 1) { global $month, $postdata, $time_difference; // echo $postdata['Date']; - echo '


'; + if ('draft' == $postdata['post_status']) { + $checked = 'checked="checked" '; + $edit = false; + } else { + $checked = ' '; + } + + echo '


'; $time_adj = time() + ($time_difference * 3600); $jj = ($edit) ? mysql2date('d', $postdata['Date']) : date('d', $time_adj);