From d17c1c555babe58c33e854fafb9667d5e57ac8d9 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 5 Mar 2013 22:13:20 +0100 Subject: [PATCH] Force status to integer value before writing database. --- includes/db/sql_functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/db/sql_functions.inc b/includes/db/sql_functions.inc index 85a25137..febc3af8 100644 --- a/includes/db/sql_functions.inc +++ b/includes/db/sql_functions.inc @@ -55,7 +55,7 @@ function cancel_transaction() // function update_record_status($id, $status, $table, $key) { $sql = "UPDATE ".TB_PREF.$table." SET inactive = " - . db_escape($status)." WHERE $key=".db_escape($id); + . ((int)$status)." WHERE $key=".db_escape($id); db_query($sql, "Can't update record status"); } -- 2.30.2