mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Fixed sql. Remove limit from update.
This commit is contained in:
parent
d78be79c7b
commit
3cf76c97f9
20 changed files with 31 additions and 31 deletions
|
@ -65,7 +65,7 @@ if ($tpl_data) {
|
|||
if ($tpl_data['tpl_rules_post_id']) {
|
||||
if (!$tpl_rules_html = bbcode2html(DB()->fetch_row("SELECT post_text FROM " . BB_POSTS_TEXT . " WHERE post_id = " . $tpl_data['tpl_rules_post_id'], 'post_text'))) {
|
||||
$tpl_data['tpl_rules_post_id'] = 0;
|
||||
DB()->query("UPDATE " . BB_TOPIC_TPL . " SET tpl_rules_post_id = 0 WHERE tpl_id = {$f_data['forum_tpl_id']} LIMIT 1");
|
||||
DB()->query("UPDATE " . BB_TOPIC_TPL . " SET tpl_rules_post_id = 0 WHERE tpl_id = {$f_data['forum_tpl_id']}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue