Ticket #2982: ticket2982.patch
File ticket2982.patch, 696 bytes (added by , 17 years ago) |
---|
-
includes/objects/Database.php
77 77 } 78 78 79 79 /** 80 * Destructor to save the session before the database connection dies 81 /**/ 82 function __destruct() { 83 // Restore global db object reference for session write 84 global $db; 85 $db = $this; 86 // Ask session to write and close now, before we lose the db object forever 87 session_write_close(); 88 } 89 90 /** 80 91 * This takes the place of a database constructor. It should be called directly 81 92 * without an object as: 82 93 *