Some lines forgotten in payback deletion system

This commit is contained in:
Phyks 2013-09-14 23:33:01 +02:00
parent 92160b28ad
commit 2fb68a035f

View File

@ -569,7 +569,7 @@
$paybacks = $paybacks->load(array('to_user'=>(int) $_GET['to'], 'from_user'=> (int) $_GET['from'], 'invoice_id'=> (int) $_GET['invoice_id'])); $paybacks = $paybacks->load(array('to_user'=>(int) $_GET['to'], 'from_user'=> (int) $_GET['from'], 'invoice_id'=> (int) $_GET['invoice_id']));
if($paybacks == false) { if($paybacks !== false) {
foreach($paybacks as $payback) { foreach($paybacks as $payback) {
$payback->delete(); $payback->delete();
} }
@ -581,7 +581,6 @@
array_map("unlink", $tmp_files); array_map("unlink", $tmp_files);
} }
exit();
header('location: index.php'); header('location: index.php');
exit(); exit();
} }