This commit is contained in:
Shish 2020-10-29 08:08:42 +00:00
parent 8a58ede5b3
commit 6789bd5fdd
2 changed files with 30 additions and 30 deletions

View file

@ -203,7 +203,7 @@ class ForumTheme extends Themelet
$title = $thread["title"]; $title = $thread["title"];
} }
if ($thread["sticky"] == "Y") { if (bool_escape($thread["sticky"])) {
$sticky = "Sticky: "; $sticky = "Sticky: ";
} else { } else {
$sticky = ""; $sticky = "";

View file

@ -70,7 +70,7 @@ class TipsTheme extends Themelet
$html .= "</tr></thead>"; $html .= "</tr></thead>";
foreach ($tips as $tip) { foreach ($tips as $tip) {
$tip_enable = ($tip['enable'] == "Y") ? "Yes" : "No"; $tip_enable = bool_escape($tip['enable']) ? "Yes" : "No";
$set_link = "<a href='".make_link("tips/status/".$tip['id'])."'>".$tip_enable."</a>"; $set_link = "<a href='".make_link("tips/status/".$tip['id'])."'>".$tip_enable."</a>";
$html .= "<tr>". $html .= "<tr>".