session::destroy() should call session_destroy() only if a session exists

This commit is contained in:
Chris Morgan
2006-07-06 05:00:38 +00:00
committed by WineHQ
parent 4706e36595
commit adeb1adbdc

View File

@@ -54,6 +54,7 @@ class session
// destroy session
function destroy ()
{
if(session_id() != "")
session_destroy();
}