mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Merge pull request #571 from torrentpier/minor-adjustments
Minor adjustments #571
This commit is contained in:
commit
21e1ebc86d
2 changed files with 3 additions and 3 deletions
4
poll.php
4
poll.php
|
@ -26,10 +26,10 @@ $poll = new TorrentPier\Legacy\Poll();
|
||||||
|
|
||||||
// проверка валидности $topic_id
|
// проверка валидности $topic_id
|
||||||
if (!$topic_id) {
|
if (!$topic_id) {
|
||||||
bb_die('Invalid topic_id');
|
bb_die($lang['INVALID_TOPIC_ID']);
|
||||||
}
|
}
|
||||||
if (!$t_data = DB()->fetch_row("SELECT * FROM " . BB_TOPICS . " WHERE topic_id = $topic_id LIMIT 1")) {
|
if (!$t_data = DB()->fetch_row("SELECT * FROM " . BB_TOPICS . " WHERE topic_id = $topic_id LIMIT 1")) {
|
||||||
bb_die('Topic not found');
|
bb_die($lang['INVALID_TOPIC_ID_DB']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// проверка прав
|
// проверка прав
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
<div class="copyright tCenter">
|
<div class="copyright tCenter">
|
||||||
<b style="color:rgb(204,0,0);">{L_NOTICE}</b><br />
|
<b style="color:rgb(204,0,0);">{L_NOTICE}</b><br />
|
||||||
{L_COPY}
|
{L_COPY}
|
||||||
</div>
|
</div><br />
|
||||||
|
|
||||||
<!--/page_footer -->
|
<!--/page_footer -->
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue