Commit 5c045271 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Use exec() instead of prepare() and execute() for removing of accounting tracking info

parent 923488a9
......@@ -77,13 +77,7 @@ if ($_POST['frmaction'] == "delete") {
# Check last query succeeded, if so continue
$db->beginTransaction();
$stmt = $db->prepare("
DELETE FROM
${DB_TABLE_PREFIX}accounting_tracking
WHERE
AccountingID = ?
");
$res = $stmt->execute($_POST['accounting_id']);
$res = $db->exec("DELETE FROM ${DB_TABLE_PREFIX}accounting_tracking WHERE AccountingID = ".$db->quote($_POST['accounting_id']));
if ($res !== FALSE) {
?>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment