Fix a few more notices

This commit is contained in:
Alexey Miheev
2014-01-06 04:36:35 +04:00
parent 76f8a26ed4
commit b6486c38ea
2 changed files with 3 additions and 3 deletions

View File

@@ -327,7 +327,7 @@ function template_main()
<b', isset($context['post_error']['no_subject']) ? ' style="color: #FF0000;"' : '', '>', $txt[70], ':</b>
</td>
<td>
<input type="text" maxlength="50" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' size="80" maxlength="80" tabindex="1" />
<input type="text" maxlength="50" name="subject"', empty($context['subject']) ? '' : ' value="' . $context['subject'] . '"', ' size="80" maxlength="80" tabindex="1" />
</td>
</tr>';
if ($context['is_first_post'])
@@ -337,7 +337,7 @@ function template_main()
<b>Подзаголовок:</b>
</td>
<td>
<input type="text" maxlength="50" name="subtitle"', $context['subtitle'] == '' ? '' : ' value="' . $context['subtitle'] . '"', ' size="80" maxlength="80" tabindex="2" />
<input type="text" maxlength="50" name="subtitle"', empty($context['subtitle']) ? '' : ' value="' . $context['subtitle'] . '"', ' size="80" maxlength="80" tabindex="2" />
</td>
</tr>';
echo '

View File

@@ -493,7 +493,7 @@ if (! defined('MOBILE')) {
</li>
</ul>
<?
if (!empty($context['current_topic']) && $context['is_watched'] == false ) {
if (!empty($context['current_topic']) && empty($context['is_watched']) ) {
?>
<ul class="jx-bar-button">
<li title="Следить за темой"><a href="http://rock.ru/forum/index.php?action=watch;id_topic=<?=$context['current_topic']?>;return=<?=urlencode("topic=".$context['current_topic'].'.'.$context['start'])?>"><img src="http://img.rock.ru/images/reply.png" alt="" />Следить за темой</a>