Some lines forgotten in payback deletion system
This commit is contained in:
parent
92160b28ad
commit
2fb68a035f
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user