openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 374d5e528cd17ca1106fdd97dbc614bceeb0bcba
parent 06bf959ac2a98c6f803a7770dfbeabafcaa284ef
Author: dankert <devnull@localhost>
Date:   Thu,  3 Dec 2009 20:31:07 +0100

Beim Setzen einer neuen Datenbank-Id die bisherige Transaktion zurücksetzen.

Diffstat:
actionClasses/IndexAction.class.php | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/actionClasses/IndexAction.class.php b/actionClasses/IndexAction.class.php @@ -39,6 +39,12 @@ class IndexAction extends Action if ( !isset($conf['database'][$dbid] )) die( 'unknown DB-Id: '.$dbid ); + + $db = db_connection(); + if ( is_object($db) ) + { + $db->rollback(); + } $db = new DB( $conf['database'][$dbid] ); $db->id = $dbid;