only rollback the database if there is a database connection

This commit is contained in:
Shish 2012-01-27 12:24:48 +00:00
parent f3014e4e1e
commit 50bc229ad7

View file

@ -177,7 +177,7 @@ catch(Exception $e) {
</body>
</html>
EOD;
$database->db->rollback();
if($database && $database->db) $database->db->rollback();
ctx_log_ender();
}
?>