Commit 4b498296 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Fixed bug where error from exec() was checked the wrong way

parent 5c045271
......@@ -79,7 +79,7 @@ if ($_POST['frmaction'] == "delete") {
$res = $db->exec("DELETE FROM ${DB_TABLE_PREFIX}accounting_tracking WHERE AccountingID = ".$db->quote($_POST['accounting_id']));
if ($res !== FALSE) {
if ($res) {
?>
<div class="notice">Accounting tracking info deleted</div>
<?php
......
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