Update database_transaction_edit.php

This commit is contained in:
FusionPBX 2018-02-13 09:33:51 -07:00 committed by GitHub
parent 82daa62767
commit 4a620ca22c
1 changed files with 7 additions and 5 deletions

View File

@ -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";