Use the method from core/util to parse the bool from the DB instead.
This commit is contained in:
parent
3a1197256a
commit
6f685ca227
1 changed files with 2 additions and 2 deletions
|
@ -137,9 +137,9 @@ class Tips extends Extension {
|
||||||
|
|
||||||
$tip = $database->get_row("SELECT * FROM tips WHERE id = ? ", array($tipID));
|
$tip = $database->get_row("SELECT * FROM tips WHERE id = ? ", array($tipID));
|
||||||
|
|
||||||
if($tip['enable'] == "Y") {
|
if (bool_escape($tip['enable'])) {
|
||||||
$enable = "N";
|
$enable = "N";
|
||||||
} elseif($tip['enable'] == "N") {
|
} else {
|
||||||
$enable = "Y";
|
$enable = "Y";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue