[21006] Fix: disconnect db after session commit 4580:4682

Sigurd Nes <[email protected]> Sat, 30 Jan 2010 17:10:52 +0000
Newsgroups gmane.comp.web.phpgroupware.cvs
Message-ID <[email protected]>
Revision: 21006
          http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=21006
Author:   sigurdne
Date:     2010-01-30 17:10:52 +0000 (Sat, 30 Jan 2010)
Log Message:
-----------
Fix: disconnect db after session commit 4580:4682

Modified Paths:
--------------
    people/sigurdne/modules/phpgwapi/trunk/inc/class.common.inc.php

Modified: people/sigurdne/modules/phpgwapi/trunk/inc/class.common.inc.php
===================================================================
--- people/sigurdne/modules/phpgwapi/trunk/inc/class.common.inc.php	2010-01-30 17:03:40 UTC (rev 21005)
+++ people/sigurdne/modules/phpgwapi/trunk/inc/class.common.inc.php	2010-01-30 17:10:52 UTC (rev 21006)
@@ -297,8 +297,8 @@
 				{
 					ExecMethod('phpgwapi.asyncservice.check_run', 'fallback');
 				}
+				$GLOBALS['phpgw']->session->commit_session();
 				$GLOBALS['phpgw']->db->disconnect();
-				$GLOBALS['phpgw']->session->commit_session();
 				$final_called = true;
 			}
 		}