From 50bc229ad72f176ef72324a5e01018e15c93ca88 Mon Sep 17 00:00:00 2001 From: Shish <shish@shishnet.org> Date: Fri, 27 Jan 2012 12:24:48 +0000 Subject: [PATCH] only rollback the database if there is a database connection --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { </body> </html> EOD; - $database->db->rollback(); + if($database && $database->db) $database->db->rollback(); ctx_log_ender(); } ?>