From 6f685ca2273606a029d70d421e86f83be16018ea Mon Sep 17 00:00:00 2001 From: jgen Date: Fri, 25 Apr 2014 17:39:46 -0400 Subject: [PATCH] Use the method from core/util to parse the bool from the DB instead. --- ext/tips/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/tips/main.php b/ext/tips/main.php index bef66c60..94f8bf2f 100644 --- a/ext/tips/main.php +++ b/ext/tips/main.php @@ -137,9 +137,9 @@ class Tips extends Extension { $tip = $database->get_row("SELECT * FROM tips WHERE id = ? ", array($tipID)); - if($tip['enable'] == "Y") { + if (bool_escape($tip['enable'])) { $enable = "N"; - } elseif($tip['enable'] == "N") { + } else { $enable = "Y"; }