X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/1e7092b2a85592240048d9622a6f619aa2a7c68a..fa6508ac21c30d6bfef008387fabd29a843d7b66:/mobile/expense_delete.php diff --git a/mobile/expense_delete.php b/mobile/expense_delete.php index a6f0989e..c0fa032e 100644 --- a/mobile/expense_delete.php +++ b/mobile/expense_delete.php @@ -42,7 +42,7 @@ if (!$user->isPluginEnabled('ex')) { } $cl_id = (int)$request->getParameter('id'); // Get the expense item we are deleting. -$expense_item = ttExpenseHelper::getItem($cl_id, $user->getActiveUser()); +$expense_item = ttExpenseHelper::getItem($cl_id, $user->getUser()); if (!$expense_item || $expense_item['invoice_id']) { // Prohibit deleting not ours or invoiced items. header('Location: access_denied.php'); @@ -59,7 +59,7 @@ if ($request->isPost()) { if ($err->no()) { // Mark the record as deleted. - if (ttExpenseHelper::markDeleted($cl_id, $user->getActiveUser())) { + if (ttExpenseHelper::markDeleted($cl_id, $user->getUser())) { header('Location: expenses.php'); exit(); } else