Use the method from core/util to parse the bool from the DB instead.

This commit is contained in:
jgen 2014-04-25 17:39:46 -04:00
parent 3a1197256a
commit 6f685ca227

View file

@ -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";
} }