Skip to content

Commit

Permalink
Fix: remove errorneous and superfluous single quote from query string
Browse files Browse the repository at this point in the history
It caused an error on the mySQL side and prevented a thread to get marked or unmarked.
This is a copy of the trunk commit 6b307f4.
  • Loading branch information
auge8472 committed Nov 23, 2019
1 parent a82c303 commit d6d6a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function sql_banlists()
$field = mysqli_fetch_assoc($mark_result);
mysqli_free_result($mark_result);
if ($field['marked']==0) $marked = 1; else $marked = 0;
mysqli_query($connid, "UPDATE ". $db_settings['forum_table'] ." SET time=time, last_answer=last_answer, edited=edited, marked= ". intval($marked) ."' WHERE tid= ". intval($_GET['mark']));
mysqli_query($connid, "UPDATE ". $db_settings['forum_table'] ." SET time=time, last_answer=last_answer, edited=edited, marked= ". intval($marked) ." WHERE tid= ". intval($_GET['mark']));
header("location: ".$_GET['refer']."?id=".$_GET['mark']."&category=".$_GET['category']."&page=".$_GET['page']."&order=".$_GET['order']);
die("<a href=\"".$_GET['refer']."?id=".$_GET['mark']."&amp;category=".$_GET['category']."&amp;page=".$_GET['page']."&amp;order=".$_GET['order']."\">further...</a>");

Expand Down

0 comments on commit d6d6a6c

Please sign in to comment.