浏览代码

Merge pull request #1121 from Oldiesmann/release-2.1

! Reversed logic lead to "undefined index" errors...
Michael Eshom 11 年之前
父节点
当前提交
eb4fbb2694
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Themes/default/Post.template.php

+ 1 - 1
Themes/default/Post.template.php

@@ -365,7 +365,7 @@ function template_main()
 							<span id="caption_edit_reason">', $txt['reason_for_edit'], ':</span>
 						</dt>
 						<dd>
-							<input type="text" name="modify_reason"', isset($context['last_modified_reason']) ? '' : ' value="' . $context['last_modified_reason'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
+							<input type="text" name="modify_reason"', isset($context['last_modified_reason']) ? ' value="' . $context['last_modified_reason'] . '"' : '', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
 						</dd>
 					</dl>';