booling
This commit is contained in:
parent
8a58ede5b3
commit
6789bd5fdd
2 changed files with 30 additions and 30 deletions
|
@ -203,7 +203,7 @@ class ForumTheme extends Themelet
|
|||
$title = $thread["title"];
|
||||
}
|
||||
|
||||
if ($thread["sticky"] == "Y") {
|
||||
if (bool_escape($thread["sticky"])) {
|
||||
$sticky = "Sticky: ";
|
||||
} else {
|
||||
$sticky = "";
|
||||
|
|
|
@ -70,7 +70,7 @@ class TipsTheme extends Themelet
|
|||
$html .= "</tr></thead>";
|
||||
|
||||
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>";
|
||||
|
||||
$html .= "<tr>".
|
||||
|
|
Reference in a new issue