Merge pull request #3027 from abdmaster/fix/db_transaction_failure

Added `_trans_failure` property to fix PHP Warning.