Roles and Permissions issue?
Should the statement be to set inactive=0 instead of inactive=''?
Offending code is at lines 56-61 in includes/db/sql_functions.inc:
function update_record_status($id, $status, $table, $key) {
$sql = "UPDATE ".TB_PREF.$table." SET inactive = "
. db_escape($status)." WHERE $key=".db_escape($id);
db_query($sql, "Can't update record status");
}
Beware of legacy issues of if and when the column changed to be integer and whether all such tables have the same field type for field name inactive.
There are a total of 31 tables having inactive tinyint(1) and none having a field name of inactive with any other field type. Extensions are another matter though and whether they use this function here is also to be checked especially if they are not tinyint(1) or any int() for that matter.
Therefore it can be safely be changed to:
function update_record_status($id, $status, $table, $key) {
$sql = "UPDATE ".TB_PREF.$table." SET inactive = " . $status+0
. " WHERE $key=".db_escape($id);
db_query($sql, "Can't update record status");
}