diff --git a/index.php b/index.php index e632c15f..25e363c3 100644 --- a/index.php +++ b/index.php @@ -177,7 +177,7 @@ catch(Exception $e) { EOD; - $database->db->rollback(); + if($database && $database->db) $database->db->rollback(); ctx_log_ender(); } ?>