Browse Source

! last_modified_reason isn't always set (Fixes #977)

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 years ago
parent
commit
425a1ab70a
1 changed files with 1 additions and 1 deletions
  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"', $context['last_modified_reason'] == '' ? '' : ' value="' . $context['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>';