Update database_transaction_edit.php
This commit is contained in:
parent
82daa62767
commit
4a620ca22c
|
|
@ -86,12 +86,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the type if not provided
|
//get the type if not provided
|
||||||
if (strlen($transaction_old) > 4) {
|
if (strlen($transaction_type) == 0) {
|
||||||
|
if ($transaction_old == null || $transaction_old == "null") {
|
||||||
$transaction_type = 'add';
|
$transaction_type = 'add';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$transaction_type = 'update';
|
$transaction_type = 'update';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//show the header
|
//show the header
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue