appdb/include session.php
WineHQ
wineowner at wine.codeweavers.com
Thu Jul 6 00:00:38 CDT 2006
ChangeSet ID: 26199
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2006/07/06 00:00:38
Modified files:
include : session.php
Log message:
Chris Morgan <cmorgan at alum.wpi.edu>
session::destroy() should call session_destroy() only if a session exists
Patch: http://cvs.winehq.org/patch.py?id=26199
Old revision New revision Changes Path
1.11 1.12 +2 -1 appdb/include/session.php
Index: appdb/include/session.php
diff -u -p appdb/include/session.php:1.11 appdb/include/session.php:1.12
--- appdb/include/session.php:1.11 6 Jul 2006 5: 0:38 -0000
+++ appdb/include/session.php 6 Jul 2006 5: 0:38 -0000
@@ -54,7 +54,8 @@ class session
// destroy session
function destroy ()
{
- session_destroy();
+ if(session_id() != "")
+ session_destroy();
}
// open session file (not needed for DB access)
More information about the wine-cvs
mailing list