only rollback the database if there is a database connection
This commit is contained in:
parent
f3014e4e1e
commit
50bc229ad7
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ catch(Exception $e) {
|
|||
</body>
|
||||
</html>
|
||||
EOD;
|
||||
$database->db->rollback();
|
||||
if($database && $database->db) $database->db->rollback();
|
||||
ctx_log_ender();
|
||||
}
|
||||
?>
|
||||
|
|
Reference in a new issue