浏览代码

minor fix to php.Session automatic start

Franco Ponticelli 17 年之前
父节点
当前提交
b3a1e908b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/php/Session.hx

+ 1 - 1
std/php/Session.hx

@@ -115,7 +115,7 @@ class Session {
 		untyped __call__("unset", __var__("_SESSION", name));
 	}
 	
-	private static var _started = false;
+	private static var _started = untyped __call__("isset", __var__("_SESSION"));
 	private static function start() {
 		if(_started) return;
 		_started = true;