Make sure to catch any exceptions thrown trying to rollback the transaction. Still...
authorChuck Hagenbuch <chuck@horde.org>
Mon, 24 Jan 2011 04:03:51 +0000 (23:03 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 24 Jan 2011 04:03:51 +0000 (23:03 -0500)
framework/SessionHandler/lib/Horde/SessionHandler/Storage/Sql.php

index 281cb33..7209d7f 100644 (file)
@@ -137,7 +137,10 @@ class Horde_SessionHandler_Storage_Sql extends Horde_SessionHandler_Storage
             $this->_db->update($query, $values);
             $this->_db->commitDbTransaction();
         } catch (Horde_Db_Exception $e) {
-            $this->_db->rollbackDbTransaction();
+            try {
+                $this->_db->rollbackDbTransaction();
+            } catch (Horde_Db_Exception $e) {
+            }
             return false;
         }
 
@@ -202,5 +205,4 @@ class Horde_SessionHandler_Storage_Sql extends Horde_SessionHandler_Storage
             return array();
         }
     }
-
 }